On Thu, 2003-10-23 at 01:51, Terry Reedy wrote: > So I really *don't* need global. Perhaps a new builtin > > def me(): > import sys > return sys.modules[__name__] +1, or just "import __me__" I've often wanted a convenient way to get a hold of the current module object. I use something like def me(), but it's a bit ugly and magical looking. -Barry -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 307 bytes Desc: This is a digitally signed message part Url : http://mail.python.org/pipermail/python-dev/attachments/20031023/5aa0a928/attachment-0001.bin
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