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 _______________________________________