Explanation of list reference

Marko Rauhamaa marko at pacujo.net
Sun Feb 16 05:52:58 EST 2014


Ian Kelly <ian.g.kelly at gmail.com>:

>>>> (1).__str__()
> '1'

Fair enough.

The syntactic awkwardness, then, explains why numbers don't have an
evolved set of methods (unlike strings).


Marko



More information about the Python-list mailing list