[docs] [issue20692] Tutorial section 9.4 and FAQ: how to call a method on an int

Terry J. Reedy report at bugs.python.org
Wed Mar 12 19:57:19 CET 2014

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 at bugs.python.org>

More information about the docs mailing list