Message91647
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 equivalent] *is*
available as a public API in the inspect module of Python, as
inspect.currentframe(). I don't know why the inspect module is not
brought up in the discussions about sys._getframe(), but it is a public
API. Would this mean that introspecting callframes is something all
interpreters are expected to support? Brett: what is your opinion?
Perhaps I should move this discussion to the mailing list? |
|
Date |
User |
Action |
Args |
2009-08-16 22:01:31 | thobe | set | recipients:
+ thobe, brett.cannon, georg.brandl, cvrebert, johannes.janssen |
2009-08-16 22:01:30 | thobe | set | messageid: <1250460090.97.0.657409671698.issue6712@psf.upfronthosting.co.za> |
2009-08-16 22:01:29 | thobe | link | issue6712 messages |
2009-08-16 22:01:29 | thobe | create | |
|