[Python-Dev] async generator bug fixed in 3.8+ and backported to 3.6 but not to 3.7

2020-08-11 Thread Matthew Einhorn
Hi,

The fix for https://bugs.python.org/issue33786 ("@asynccontextmanager
doesn't work well with async generators") was merged in 3.8 and then
backported to 3.6. However, it was overlooked to be backported for 3.7 (
https://github.com/python/cpython/pull/7506).

I'm aware that 3.7 is in security fix mode only so I'm not sure there's
more to be done, however, given that this is fixed for 3.6, 3.7 is in a
weird position still having the bug.

So I just wanted to bring this up in case the fix can still be backported
to 3.7.

Matt
___
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/LW73WSFPK7XHKHEZDRQMWOHK2BDUJWYK/
Code of Conduct: http://python.org/psf/codeofconduct/


[Python-Dev] Re: async generator bug fixed in 3.8+ and backported to 3.6 but not to 3.7

2020-08-11 Thread Guido van Rossum
If the release manager agrees, this should be a simple call to
cherry-picker.

On Tue, Aug 11, 2020 at 13:18 Matthew Einhorn  wrote:

> Hi,
>
> The fix for https://bugs.python.org/issue33786 ("@asynccontextmanager
> doesn't work well with async generators") was merged in 3.8 and then
> backported to 3.6. However, it was overlooked to be backported for 3.7 (
> https://github.com/python/cpython/pull/7506).
>
> I'm aware that 3.7 is in security fix mode only so I'm not sure there's
> more to be done, however, given that this is fixed for 3.6, 3.7 is in a
> weird position still having the bug.
>
> So I just wanted to bring this up in case the fix can still be backported
> to 3.7.
>
> Matt
> ___
> Python-Dev mailing list -- python-dev@python.org
> To unsubscribe send an email to python-dev-le...@python.org
> https://mail.python.org/mailman3/lists/python-dev.python.org/
> Message archived at
> https://mail.python.org/archives/list/python-dev@python.org/message/LW73WSFPK7XHKHEZDRQMWOHK2BDUJWYK/
> Code of Conduct: http://python.org/psf/codeofconduct/
>
-- 
--Guido (mobile)
___
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/UROFW7IR2RSPGVMZTOTMVE5PL53HLOPW/
Code of Conduct: http://python.org/psf/codeofconduct/


[Python-Dev] [RELEASE] Python 3.9.0rc1 is now available

2020-08-11 Thread Łukasz Langa
Python 3.9.0 is *almost* ready. This release, *3.9.0rc1*, is the penultimate 
release preview. You can get it here:

https://www.python.org/downloads/release/python-390rc1/
Entering the release candidate phase, only reviewed code changes which are 
clear bug fixes are allowed between this release candidate and the final 
release. The second candidate and the last planned release preview is currently 
planned for 2020-09-14.

Please keep in mind that this is a preview release and its use is *not* 
recommended for production environments.

Calls to action

Core developers: all eyes on the docs now

 * Are all *your* changes properly documented?
 * Did you notice *other* changes you know of to have insufficient 
documentation?
Community members

We *strongly encourage* maintainers of third-party Python projects to prepare 
their projects for 3.9 compatibility during this phase. As always, report any 
issues to the Python bug tracker .

Installer news

This is the first version of Python to default to the 64-bit installer on 
Windows. The installer now also actively disallows installation on Windows 7. 
Python 3.9 is incompatible with this unsupported version of Windows.

Major new features of the 3.9 series, compared to 3.8

Some of the new major new features and changes in Python 3.9 are:

 * PEP 584 , Union Operators in  
`dict`
 * PEP 585 , Type Hinting Generics 
In Standard Collections
 * PEP 593 , Flexible function and 
variable annotations
 * PEP 602 , Python adopts a stable 
annual release cadence
 * PEP 615 , Support for the IANA 
Time Zone Database in the Standard Library
 * PEP 616 , String methods to 
remove prefixes and suffixes
 * PEP 617 , New PEG parser for 
CPython
 * BPO 38379 , garbage collection does not 
block on resurrected objects;
 * BPO 38692 , os.pidfd_open added that 
allows process management without races and signals;
 * BPO 39926 , Unicode support updated to 
version 13.0.0;
 * BPO 1635741 , when Python is 
initialized multiple times in the same process, it does not leak memory anymore;
 * A number of Python builtins (range, tuple, set, frozenset, list, dict) are 
now sped up using PEP 590  vectorcall;
 * A number of Python modules (_abc, audioop, _bz2, _codecs, _contextvars, 
_crypt, _functools, _json, _locale, operator, resource, time, _weakref) now use 
multiphase initialization as defined by PEP 489 
;
 * A number of standard library modules (audioop, ast, grp, _hashlib, pwd, 
_posixsubprocess, random, select, struct, termios, zlib) are now using the 
stable ABI defined by PEP 384 .
___
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/FFVG5DAE7RHE5ZYUVVJW5TPAZ2ALRFHB/
Code of Conduct: http://python.org/psf/codeofconduct/


[Python-Dev] How about copying the typing module docs from 3.10 to 3.9?

2020-08-11 Thread Luciano Ramalho
Hello, Łukasz,

I reorganized the typing module docs, Guido made suggestions, reviewed
and merged it to master.

Right now everything in typing.rst [1] applies to 3.9 as well as 3.10.

[1] https://docs.python.org/3.10/library/typing.html

How about copying the typing.rst file to the 3.9 branch, so more
people would benefit from it sooner?

Cheers,

Luciano



-- 
Luciano Ramalho
|  Author of Fluent Python (O'Reilly, 2015)
| http://shop.oreilly.com/product/0636920032519.do
|  Technical Principal at ThoughtWorks
|  Twitter: @ramalhoorg
___
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/XANDKPKVFHHEQYYMJE5FOVK2RHVZPX5W/
Code of Conduct: http://python.org/psf/codeofconduct/


[Python-Dev] Re: How about copying the typing module docs from 3.10 to 3.9?

2020-08-11 Thread Guido van Rossum
Yeah, we should totally backport that PR. In fact, if you send me back the
PR, I'll add a "needs backport to 3.9" label to it and the automation
should take care of the rest.

Is there any reason it can't also be backported to 3.8?

On Tue, Aug 11, 2020 at 5:01 PM Luciano Ramalho  wrote:

> Hello, Łukasz,
>
> I reorganized the typing module docs, Guido made suggestions, reviewed
> and merged it to master.
>
> Right now everything in typing.rst [1] applies to 3.9 as well as 3.10.
>
> [1] https://docs.python.org/3.10/library/typing.html
>
> How about copying the typing.rst file to the 3.9 branch, so more
> people would benefit from it sooner?
>
> Cheers,
>
> Luciano
>
>
>
> --
> Luciano Ramalho
> |  Author of Fluent Python (O'Reilly, 2015)
> | http://shop.oreilly.com/product/0636920032519.do
> |  Technical Principal at ThoughtWorks
> |  Twitter: @ramalhoorg
> ___
> Python-Dev mailing list -- python-dev@python.org
> To unsubscribe send an email to python-dev-le...@python.org
> https://mail.python.org/mailman3/lists/python-dev.python.org/
> Message archived at
> https://mail.python.org/archives/list/python-dev@python.org/message/XANDKPKVFHHEQYYMJE5FOVK2RHVZPX5W/
> Code of Conduct: http://python.org/psf/codeofconduct/
>


-- 
--Guido van Rossum (python.org/~guido)
*Pronouns: he/him **(why is my pronoun here?)*

___
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/6FKUUVN6LB466O4PEPR5DVLBQMPX2TR2/
Code of Conduct: http://python.org/psf/codeofconduct/


[Python-Dev] Re: How about copying the typing module docs from 3.10 to 3.9?

2020-08-11 Thread Terry Reedy

On 8/11/2020 7:59 PM, Luciano Ramalho wrote:


I reorganized the typing module docs, Guido made suggestions, reviewed
and merged it to master.

Right now everything in typing.rst [1] applies to 3.9 as well as 3.10.

[1] https://docs.python.org/3.10/library/typing.html

How about copying the typing.rst file to the 3.9 branch, so more
people would benefit from it sooner?


Doc improvements are routinely backported to versions they apply to, the 
same as with bugfixes.  Doing so is usually decided and done by the 
person merging to master.  The main reason not to do so is when there 
are major merge conflicts.


Doc changes show up online the next day.  I assume that the changes did 
not make the 3.9.0rc1 release ea rlier today.  Whether the release crew 
will update the offline docs included with Windows and Mac installers in 
.0rc2 and .0 is a separate issue from doing a backport.



--
Terry Jan Reedy
___
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/THV2YUBZHUKRWXIKNMPCKAJTWGVNYUAV/
Code of Conduct: http://python.org/psf/codeofconduct/