On Mon, Nov 30, 2015 at 1:06 PM, fl wrote:
> For example,
>
> a=10
>
> 'a' is an integer. Is it an object too?
Other people have explained the difference between the name "a" and
the object it's bound to... but to the extent that "a" is an integer,
yes it most definitely is an object. To be speci
> a=10
>
> 'a' is an integer. Is it an object too?
In Python, objects have an identity. When you do "a=10" then you *bind*
the object to the name *a*. By "variable", the documentation refers to a
name that was bound to an object. This is different from many other low
level languages. For example:
fl :
> 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
André Roberge writes:
> In Python, a "variable" is a name given to an object. In Python, the
> "=" sign is used to assign a name to an object: the name is on the
> left-hand side, and the object is on the right hand side. Multiple
> names can be assigned to the same object.
Take care with the di
On Sunday, 29 November 2015 22:06:58 UTC-4, fl wrote:
> Hi,
>
> I read several parts on line about Python that everything in Python is an
> object. Yes, it is a key difference with other languages. Then, I read a page
> it says variables: global and local variable at:
>
> http://www.tutorialspo
On Sun, Nov 29, 2015 at 9:06 PM, fl wrote:
> Hi,
>
> I read several parts on line about Python that everything in Python is an
> object. Yes, it is a key difference with other languages. Then, I read a
> page
> it says variables: global and local variable at:
>
> http://www.tutorialspoint.com/pyt
Hi,
I read several parts on line about Python that everything in Python is an
object. Yes, it is a key difference with other languages. Then, I read a page
it says variables: global and local variable at:
http://www.tutorialspoint.com/python/python_functions.htm
I have a question that whether