[Python-Dev] replacing 'global'

Just van Rossum just at letterror.com
Mon Oct 27 13:00:55 EST 2003


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).

On the other hand:

  a[x y]

doesn't mean anything, so I don't see an immediate problem.

I like Neal's proposal, including the "::" digraph.

Just



More information about the Python-Dev mailing list