Skip to content

Commit

Permalink
Drop Python 3.5.3 mentions, the minimal supported version is 3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
asvetlov committed Oct 24, 2020
1 parent 9d3dc47 commit ae0c13d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 27 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ Please add *aiohttp* tag to your question there.
Requirements
============

- Python >= 3.5.3
- Python >= 3.6
- async-timeout_
- attrs_
- chardet_
Expand Down
25 changes: 0 additions & 25 deletions docs/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -77,31 +77,6 @@ other resource you want to share between handlers.
return app


Why is Python 3.5.3 the lowest supported version?
-------------------------------------------------

Python 3.5.2 fixes the protocol for async iterators: ``__aiter__()`` is
not a coroutine but a regular function.

Python 3.5.3 has a more important change: :func:`asyncio.get_event_loop`
returns the running loop instance if called from a coroutine.
Previously it returned a *default* loop, set by
:func:`asyncio.set_event_loop`.

Previous to Python 3.5.3,
:func:`asyncio.get_event_loop` was not reliable, so users were
forced to explicitly pass the event loop instance everywhere.
If a future object were created for one event loop
(e.g. the default loop) but a coroutine was run by another loop, the coroutine
was never awaited. As a result, the task would hang.

Keep in mind that every internal ``await`` expression either passed
instantly or paused, waiting for a future.

It's extremely important that all tasks (coroutine runners) and
futures use the same event loop.


How can middleware store data for web handlers to use?
------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ Continuous Integration.
Dependencies
============

- Python 3.5.3+
- Python 3.6+
- *async_timeout*
- *attrs*
- *chardet*
Expand Down

0 comments on commit ae0c13d

Please sign in to comment.