[Python-Dev] Re: PEP 515: Non-empty return statement

2020-08-24 Thread Larry Hastings
I bet you meant PEP 525.  PEP 515 is underscores in numeric literals. And... I thought an empty "return" was equivalent to "return None"? //arry/ On 8/24/20 4:20 PM, Paul Bryan wrote: Per PEP 515: It is aSyntaxErrorto have a non-emptyreturnstatement in an asynchronous generator. Synchron

[Python-Dev] Re: PEP 515: Non-empty return statement

2020-08-24 Thread Nathaniel Smith
It was decided to leave out 'yield from' support for async generators, at least for now, due to the implementation complexity. And non-empty returns in generators are only intended for use with 'yield from', so they got left out as well. On Mon, Aug 24, 2020 at 4:48 PM Paul Bryan wrote: > > Per P

[Python-Dev] PEP 515: Non-empty return statement

2020-08-24 Thread Paul Bryan
Per PEP 515: > It is a SyntaxError to have a non-empty return statement in an > asynchronous generator. Synchronus generators can return values that include it in the StopIteration exception. Why would a return value in an asynchronous generator not do the same in the StopAsyncIteration? ___

[Python-Dev] Re: **= does not follow the data model

2020-08-24 Thread Brett Cannon
On Sun, Aug 23, 2020 at 1:57 PM Guido van Rossum wrote: > On Sun, Aug 23, 2020 at 1:09 PM Brett Cannon wrote: > >> If you read the language reference for augmented arithmetic assignment, >> you will note that it essentially says, "call __i__, and if that >> doesn't work call as if you were doing

[Python-Dev] Re: [python-committers] [RELEASED] Python 3.5.10rc1 is released

2020-08-24 Thread Victor Stinner
Hi, I checked the vulnerabilities that I'm tracking at https://python-security.readthedocs.io/vulnerabilities.html I noticed that https://bugs.python.org/issue39603 "http.client: HTTP Header Injection in the HTTP method" lacks a fix in the 3.5 branch. I backported the fix to 3.5: https://github.