Michael Foord mich...@voidspace.org.uk added the comment:
Committed revision 74781.
--
resolution: - accepted
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6712
___
New submission from Johannes Janssen m...@johannes-janssen.de:
As I learned on the mailing list the function sys._getframe() is not
available on all Python implementations (e.g. jython). This information
should be added to the documentation.
--
assignee: georg.brandl
components:
Changes by Chris Rebert pyb...@rebertia.com:
--
nosy: +cvrebert
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6712
___
___
Python-bugs-list
Brett Cannon br...@python.org added the comment:
The leading underscore is meant to convey that it is not guaranteed to
exist. But in spite of this, we do plan long-term to make it explicit what
all interpreters are expected to (not) support.
--
nosy: +brett.cannon
Tobias Ivarsson tho...@gmail.com added the comment:
While it is true that not all Python implementations support
sys._getframe() in some or all execution modes, Jython does support it,
even IronPython supports it with the proper startup parameters these days.
More importantly sys._getframe()
Gregory P. Smith g...@krypto.org added the comment:
Yeah I'd take this to the list. Perhaps this is destined to be a public
API.
--
nosy: +gregory.p.smith
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6712
Michael Foord mich...@voidspace.org.uk added the comment:
It's actually quite annoying that inspect takes a private API (that has
warnings in the documentation about its use) and makes it public. It's
just a direct alias. That in itself is not a good reason to say the
_getframe should be public.
Brett Cannon br...@python.org added the comment:
It sounds like inspect needs to have its docs updated such that it makes
it explicit inspect.currentframe() requires sys._getframe() to exist to
return anything of use (the code returns None in other cases). So the
public API can exist, but it
Michael Foord mich...@voidspace.org.uk added the comment:
I meant in IronPython of course. D'oh. Anyway, I made the change to
inspect to keep it compatible with IronPython so I can make the
documentation change.
A mention in the sys._getframe docs that it is not guaranteed to exist
across
Brett Cannon br...@python.org added the comment:
On Sun, Aug 16, 2009 at 16:23, Michael Foordrep...@bugs.python.org wrote:
Michael Foord mich...@voidspace.org.uk added the comment:
I meant in IronPython of course. D'oh. Anyway, I made the change to
inspect to keep it compatible with
10 matches
Mail list logo