int literals and __class__ (WAS: Is a list an instance of a class?)
steven.bethard at gmail.com
Tue Nov 16 07:51:25 CET 2004
Dan Bishop <danb_83 <at> yahoo.com> writes:
> You don't have to ask *that* nicely.
> >>> 1 .__class__ # notice the space
> <type 'int'>
Why does this work? Or, perhaps my real question is why *doesn't* it work
without the space? Pointers to the appropriate point in the docs would be
fine... I assume it's something about making parsing easier...?
More information about the Python-list