Proposal: Magic Constants

John Roth newsgroups at jhrothjr.com
Wed Aug 27 16:19:27 EDT 2003


"Raymond Hettinger" <vze4rx4y at verizon.net> wrote in message
news:eM53b.6461$zL2.689 at nwrdny01.gnilink.net...
> > > > 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.

Well, to be truthful about it, I'd just as soon require white
space between all tokens except for the delimiter types.
However, that's not going to happen because of the backwards
compatability issues.

John Roth
>
>
> Raymond Hettinger
>
>






More information about the Python-list mailing list