[Python-ideas] Async API

Yury Selivanov yselivanov.ml at gmail.com
Thu Oct 25 15:37:17 CEST 2012

]On 2012-10-25, at 3:49 AM, Paul Colomiets <paul at colomiets.name> wrote:

> Hi Yury,
> On Thu, Oct 25, 2012 at 9:18 AM, Yury Selivanov <yselivanov.ml at gmail.com> wrote:
>> Well, I couldn't resist and just implemented a *proof of concept* myself.
>> The patch is here: https://dl.dropbox.com/u/21052/gen_in_finally.patch
>> The patch adds 'gi_in_finally' read-only property to generator objects.
> Why haven't you used my implementation?
> http://bugs.python.org/issue14730

Because it's a different thing.  Yours is a PEP 419 implementation --
'sys.setcleanuphook'.  Mine is a quick hack to add 'gi_in_finally' property
to generators and see how good/bad it is.


More information about the Python-ideas mailing list