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

Terry J. Reedy report at bugs.python.org
Fri Feb 21 23:53:00 CET 2014


Terry J. Reedy added the comment:

I agree that the tutorial should somewhere make it clear (possibly with a FAQ link) that int literals must be parenthesized or spaced before .name attribute access because <literal>.name is parsed as (<literal>.)name.

That is a consequence of float literals not requiring a fractional part (unlike some other languages).

----------
nosy: +terry.reedy

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20692>
_______________________________________


More information about the docs mailing list