Proposal: Magic Constants

Michael Hudson mwh at python.net
Wed Aug 27 11:35:04 EDT 2003


"John Roth" <newsgroups at jhrothjr.com> writes:

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

Cheers,
mwh

-- 
 "Well, the old ones go Mmmmmbbbbzzzzttteeeeeep as they start up and
  the new ones go whupwhupwhupwhooopwhooooopwhooooooommmmmmmmmm."
                         -- Graham Reed explains subway engines on asr




More information about the Python-list mailing list