About __class__ of an int literal

AlexWalk alexleewalk at 163.com
Tue Sep 28 05:27:31 EDT 2010


In python 3.1.2(I'm using windows edition, 32bit), accessing __class__ of an int literal will raise a SyntaxException, while other literals will not. For example. 1.__class__ is an error, while 1.1.__class__ runs ok. 


I searched the python issue tracker but failed to find relevant reports. I wonder if  this is an unreported issue.


Alex Lee
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100928/f53612b4/attachment.html>


More information about the Python-list mailing list