[Python-3000] Sky pie: a "var" keyword
Neil Toronto
ntoronto at cs.byu.edu
Mon Oct 9 20:12:50 CEST 2006
Fredrik Lundh wrote:
> Neil Toronto wrote:
>
>
>> Heck no. An assignment would modify an existing variable only.
>>
>
> what's an "existing variable"? how would STORE_GLOBAL work under your
> proposal?
>
I haven't got a clue what STORE_GLOBAL is, apart from the fact that it
looks like it has something to do with Python's bytecode.
If it's what I think it is (so don't hold me to this), it'd raise an
exception if you used on something that hadn't been created yet.
Probably need a MAKE_GLOBAL in addition to it, or keep STORE_GLOBAL as
it is (for "var x = 0") and add MODIFY_GLOBAL that raises an exception
on uncreated variables.
Or something. Again, I'm guessing, and you have me at a disadvantage.
Can we keep the discussion above the bytecode level for now?
Neil
More information about the Python-3000
mailing list