March 12, 2014
6:57 p.m.
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 <report@bugs.python.org> <http://bugs.python.org/issue20692> _______________________________________