[Python-3000] [Python-Dev] PEP 30xx: Access to Module/Class/Function Currently Being Defined (this) (original) (raw)
Phillip J. Eby pje at telecommunity.com
Mon Apr 23 18:11:30 CEST 2007
- Previous message: [Python-3000] [Python-Dev] PEP 30xx: Access to Module/Class/Function Currently Being Defined (this)
- Next message: [Python-3000] PEP 30xx: Access to Module/Class/Function CurrentlyBeing Defined (this)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
At 11:51 AM 4/23/2007 -0400, Jim Jewett wrote:
On 4/22/07, Steven Bethard <steven.bethard at gmail.com> wrote: > On 4/22/07, Jim Jewett <jimjjewett at gmail.com> wrote: > > PEP: 30XX > > Title: Access to Module/Class/Function Currently Being Defined (this)
> 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? My assumption would be something closer to Michele's solution -- the parser would create a new type of AST node, and the compiler would emit slightly different bytecode, but no new op-codes would be needed.
Why would a new type of AST node be required? Wouldn't these just be a special symbol, like debug? Or does debug have its own AST node type now?
- Previous message: [Python-3000] [Python-Dev] PEP 30xx: Access to Module/Class/Function Currently Being Defined (this)
- Next message: [Python-3000] PEP 30xx: Access to Module/Class/Function CurrentlyBeing Defined (this)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]