[Python-ideas] Possible PEP 380 tweak
Guido van Rossum
guido at python.org
Thu Oct 28 17:04:55 CEST 2010
On Thu, Oct 28, 2010 at 5:44 AM, Nick Coghlan <ncoghlan at gmail.com> wrote:
> Yep, we've basically agreed on that as the way forward as well. We
> have a small tweak to suggest for PEP 380 to avoid losing the return
> value from inner close() calls,
This is my "gclose()" function, right? Or is there more to it?
> and I've cc'ed Greg directly on the
> relevant message in order to move that idea forward (and bring the
> python.org version of the PEP up to date with the last posted version
> as well).
Greg's been remarkably quiet on this thread even though I cc'ed him
early on. Have you heard back from him yet?
> That should provide a solid foundation for experimentation in user
> code in 3.3 without overcomplicating PEP 380 with stuff that will
> probably end up being YAGNI.
>
>> I would be in favor of adding an introspection API to distinguish
>> these four states and I think it would be a fine thing to add to
>> Python 3.2 if anyone finds the time to produce a patch (Nick? You
>> showed what these boil down to.)
>
> I've created a tracker issue proposing a simple
> inspect.getgeneratorstate() function (issue 10220).
I added a little something to the issue.
--
--Guido van Rossum (python.org/~guido)
More information about the Python-ideas
mailing list