[François] > >> By the way, I wonder why the `_' in `sys._getframe()'. [Guido] > >> To discourage people from using it. [Barry] > Because [the previous way] is slow, hard to remember, and too magical. That is, in short, discouraging, exactly as per the wish of Guido! :-) A bit more seriously, it is fun writing: try: frame = sys._getframe(1) except AttributeError: frame = sys.exc_info()[2].tb_frame.f_back putting the error to good use whenever `_getframe' is not available! -- François Pinard http://www.iro.umontreal.ca/~pinard
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4