>>>>> "GvR" == Guido van Rossum <guido@python.org> writes: GvR> That's why we have sys._getframe(). ;-) btw, when you need it, sys._getframe() is a godsend. thank the genius who came up with that one <wink>. i've been using it in mailman in my _() wrapper (for marking translatable strings), and because you have to use %()s named interpolation instead of %s positional interpolation, using _getframe() to "get at" the locals one frame up makes the call site very clean and compact, with (imo) no loss of clarity or feeling of "too much magic". i'm planning on writing a paper for ipcx on this stuff. -barry
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