fl <rxjw...@gmail.com>:

> I read several parts on line about Python that everything in Python is
> an object.

Python has two distinct entities: objects and references.

All numbers, strings, classes, modules, class instances, files etc are
objects.

Variables, however, are not objects. They are references. Here are
different references:

   a                  # variable
   a.x                # attribute
   a[3]               # subscription

> Yes, it is a key difference with other languages.

Python shares this feature with many higher-level languages.


Marko
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to