enhancing slicing

Alex Martelli aleax at aleax.it
Thu Aug 23 09:24:47 EDT 2001


"Juan Valiño" <juanv at posta.unizar.es> wrote in message
news:9m2sij$1f8s$1 at ID-102451.news.dfncis.de...
    ...
> the implementation is easy and the current programs are not affected at
all.

Wrong!  The currently correct program:
    print "prolegomena"[3     # 4]
        ]
becomes syntactically erroneous under your proposal.  (It's
currently quite OK since # starts a comment, so the logical
line continues, having an unclosed open-bracket, and finds
the matching closed-bracket on the next line).


Alex






More information about the Python-list mailing list