On Sun, Aug 16, 2009 at 6:25 AM, Johannes Janssen<m...@johannes-janssen.de> wrote: > Gabriel Genellina schrieb: >> >> The try/except around sys._getframe(1) is because that function is not >> mandatory/available on all Python implementations (that's the case for >> jython which doesn't provide it). > > Thanks, shouldn't such information be part of the python documentation of > sys._getframe() > (http://docs.python.org/library/sys.html?highlight=sys._getframe#sys._getframe)?
The leading underscore kinda indirectly implies it, but yeah, it's worth mentioning. File a bug in the docs: http://bugs.python.org/ Cheers, Chris -- http://blog.rebertia.com -- http://mail.python.org/mailman/listinfo/python-list