[Python-Dev] replacing 'global'

Neal Norwitz neal at metaslash.com
Mon Oct 27 12:08:50 EST 2003


On Mon, Oct 27, 2003 at 08:51:16AM -0800, Guido van Rossum wrote:
> The only problem with using :: is a syntactic ambiguity:
>> a[x::y]
>> already means something (an extended slice with start=x, no stop, and
> step=y).

I'm not wedded to the :: digraph, I prefer the concept. :: was nice
because it re-used a similar concept from C++. No other digraph jumps
out at me. Some other possibilities (I don't care for any of these):
 Global Nested
 ------ ------
 :>variable scope:>variable
 *>variable scope*>variable
 ->variable scope->variable
 ?>variable scope?>variable
 &>variable scope&>variable
Or perhaps variations using <.
Neal


More information about the Python-Dev mailing list

AltStyle によって変換されたページ (->オリジナル) /