int literals and __class__ (WAS: Is a list an instance of a class?)
Steven Bethard
steven.bethard at gmail.com
Tue Nov 16 01:51:25 EST 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...?
Thanks,
Steve
More information about the Python-list
mailing list