[issue6712] sys._getframe is not available on all Python implementations

2009-09-13 Thread Michael Foord
Michael Foord added the comment: Committed revision 74781. -- resolution: -> accepted status: open -> closed ___ Python tracker ___ _

[issue6712] sys._getframe is not available on all Python implementations

2009-08-16 Thread Brett Cannon
Brett Cannon added the comment: On Sun, Aug 16, 2009 at 16:23, Michael Foord wrote: > > Michael Foord 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 mentio

[issue6712] sys._getframe is not available on all Python implementations

2009-08-16 Thread Michael Foord
Michael Foord 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 implementations would be usefu

[issue6712] sys._getframe is not available on all Python implementations

2009-08-16 Thread Brett Cannon
Brett Cannon 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 needs to say what

[issue6712] sys._getframe is not available on all Python implementations

2009-08-16 Thread Michael Foord
Michael Foord 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. Python frames are not a

[issue6712] sys._getframe is not available on all Python implementations

2009-08-16 Thread Gregory P. Smith
Gregory P. Smith 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 ___ ___

[issue6712] sys._getframe is not available on all Python implementations

2009-08-16 Thread Tobias Ivarsson
Tobias Ivarsson 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() [or something equiv

[issue6712] sys._getframe is not available on all Python implementations

2009-08-16 Thread Brett Cannon
Brett Cannon 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 ___

[issue6712] sys._getframe is not available on all Python implementations

2009-08-16 Thread Chris Rebert
Changes by Chris Rebert : -- nosy: +cvrebert ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue6712] sys._getframe is not available on all Python implementations

2009-08-16 Thread Johannes Janssen
New submission from Johannes Janssen : 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: Documentation messages: 91629 no