Everything is an object in python - object class and type class
Jon Ribbens
jon+usenet at unequivocal.co.uk
Tue Jun 2 14:47:40 EDT 2015
On 2015-06-02, Dr. Bigcock <dreamingforward at gmail.com> wrote:
> It doesn't really do anything. No one uses integers as objects.
> (Any dissenters?)
Yes. *Everyone* uses integers as objects. Containers such as
lists and dictionaries and tuples etc contain objects. If
integers weren't objects then you wouldn't be able to put them
in containers (and you'd end up with Java).
More information about the Python-list
mailing list