Proposal: Magic Constants

Raymond Hettinger vze4rx4y at verizon.net
Wed Aug 27 13:21:14 EDT 2003


> > > But these are existing literal syntax. I was thinking
> > > more of random code where someone could currently
> > > juxtapose a literal and an identifier, say, without an
> > > intervening white space character.
> >
> > >>> 10and 1
> > 1
> > >>> 5or 7
> > 5
> >
> > Very much a wart of the tokenizer, though.
>
> Ah, right. I forgot about alphabetic operators.
>
> Why do you call it a wart, though?  I would have
> thought that not requiring white space in that context
> was a feature.

Because the human eye/mind parses 10and as single a token.


Raymond Hettinger






More information about the Python-list mailing list