Oct. 25, 2012
1:37 p.m.
]On 2012-10-25, at 3:49 AM, Paul Colomiets <paul@colomiets.name> wrote:
Hi Yury,
On Thu, Oct 25, 2012 at 9:18 AM, Yury Selivanov <yselivanov.ml@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?
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. - Yury