Terry J. Reedy added the comment: Replace 'The right way... with ---- To look up an attribute on an integer literal, separate the literal from the period with either a space or parentheses.
>>> 3 .__class__ <class 'int'> >>> (5).__class__ <type 'int'> ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue20692> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com