This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eric.smith
Recipients eric.smith, mark.dickinson, mel
Date 2014-07-14.11:37:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1405337871.51.0.87512036908.issue21979@psf.upfronthosting.co.za>
In-reply-to
Content
To be more clear: the parser takes the longest token that could be valid. Since "n" can't be part of a hex number, parsing stops there, returning "0xaa" as the first token.

So:

>>> 0xaaif 1 else 0
170
>>> hex(0xaaif 1 else 0)
'0xaa'
>>>
History
Date User Action Args
2014-07-14 11:37:51eric.smithsetrecipients: + eric.smith, mark.dickinson, mel
2014-07-14 11:37:51eric.smithsetmessageid: <1405337871.51.0.87512036908.issue21979@psf.upfronthosting.co.za>
2014-07-14 11:37:51eric.smithlinkissue21979 messages
2014-07-14 11:37:51eric.smithcreate