On 4/22/07, Jim Jewett <[EMAIL PROTECTED]> wrote:
> PEP: 30XX
> Title: Access to Module/Class/Function Currently Being Defined (this)
[snip]
>
> Abstract
>
>     It is common to need a reference to the current module, class,
>     or function, but there is currently no entirely correct way to
>     do this.  This PEP proposes adding the keywords __module__,
>     __class__, and __function__.

+1 on the general idea, if it can be implemented. ;-)

One thing that isn't clear...  You're saying "keywords". So that means
"__module__" would not be a normal attribute looked up on in the
globals or builtins, but instead would be associated with its own
op-code?

STeVe
-- 
I'm not *in*-sane. Indeed, I am so far *out* of sane that you appear a
tiny blip on the distant coast of sanity.
        --- Bucky Katt, Get Fuzzy
_______________________________________________
Python-3000 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to