aboutsummaryrefslogtreecommitdiff
path: root/docs/migrating.rst
diff options
context:
space:
mode:
authorRapptz <[email protected]>2018-06-10 18:09:14 -0400
committerRapptz <[email protected]>2018-06-10 18:10:00 -0400
commitf25091efe1281aebe70189c61f9cac405b21a72f (patch)
treed0d13dad1a89de9f45845a36ea475098b7a0b494 /docs/migrating.rst
parentAdd Message.jump_to_url (diff)
downloaddiscord.py-f25091efe1281aebe70189c61f9cac405b21a72f.tar.xz
discord.py-f25091efe1281aebe70189c61f9cac405b21a72f.zip
Drop support for Python 3.4 and make minimum version 3.5.2.
Diffstat (limited to 'docs/migrating.rst')
-rw-r--r--docs/migrating.rst13
1 files changed, 10 insertions, 3 deletions
diff --git a/docs/migrating.rst b/docs/migrating.rst
index e9fbf000..6d196d87 100644
--- a/docs/migrating.rst
+++ b/docs/migrating.rst
@@ -14,6 +14,13 @@ new library.
Part of the redesign involves making things more easy to use and natural. Things are done on the
:ref:`models <discord_api_models>` instead of requiring a :class:`Client` instance to do any work.
+Python Version Change
+-----------------------
+
+In order to make development easier and also to allow for our dependencies to upgrade to allow usage of 3.7 or higher,
+the library had to remove support for Python versions lower than 3.5.2, which essentially means that **support for Python 3.4
+is dropped**.
+
Major Model Changes
---------------------
@@ -441,14 +448,14 @@ Prior to v1.0, certain functions like ``Client.logs_from`` would return a differ
In v1.0, this change has been reverted and will now return a singular type meeting an abstract concept called
:class:`AsyncIterator`.
-This allows you to iterate over it like normal in Python 3.5+: ::
+This allows you to iterate over it like normal: ::
async for message in channel.history():
print(message)
-Or turn it into a list for either Python 3.4 or 3.5+: ::
+Or turn it into a list: ::
- messages = await channel.history().flatten() # use yield from for 3.4!
+ messages = await channel.history().flatten()
for message in messages:
print(message)