[Python-ideas] Generator/Coroutiine Ontology (was async/await in Python)

Nick Coghlan ncoghlan at gmail.com
Sat Apr 25 08:16:43 CEST 2015


On 25 April 2015 at 14:51, Guido van Rossum <guido at python.org> wrote:
> +1

RFE filed as http://bugs.python.org/issue24056

Cheers,
Nick.

>
> On Fri, Apr 24, 2015 at 9:15 PM, Robert Collins <robertc at robertcollins.net>
> wrote:
>>
>> On 25 April 2015 at 16:02, Nick Coghlan <ncoghlan at gmail.com> wrote:
>>
>> > While it's a less significant behavioural difference than being a
>> > generator function, a non-empty closure could conceivably also be
>> > reported in the repr():
>> >
>> >     <function foo at 0x7f7dad9f7bf8 (closure)>
>> >     <function foo at 0x7f7dad9f7bf8 (closure,generator)>
>>
>> I like this suggestion. Doing it for the await changes as well would be
>> great.
>>
>> -Rob
>>
>> --
>> Robert Collins <rbtcollins at hp.com>
>> Distinguished Technologist
>> HP Converged Cloud
>> _______________________________________________
>> Python-ideas mailing list
>> Python-ideas at python.org
>> https://mail.python.org/mailman/listinfo/python-ideas
>> Code of Conduct: http://python.org/psf/codeofconduct/
>
>
>
>
> --
> --Guido van Rossum (python.org/~guido)



-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia


More information about the Python-ideas mailing list