undefined variable

Aahz Maruch aahz at panix.com
Sat Jan 27 01:36:29 EST 2001


In article <nHsc6.252522$59.63479549 at news3.rdc1.on.home.com>,
shaka <fabrice.n at home.com> wrote:
>
> hi, I am a beginner learning python, and I have notice that in python
>variale are not declared or defined. But does it mean that your cannot use
>the same variable twice and all your variable have to be of different name.
>In java you can have a variable of the same name but of different type and
>it makes programming much more flexible.

Python variables can hold any data type.  Also, I could be wrong, but I
doubt that Java supports name overloading for variables; I believe name
overloading only applies to functions.
-- 
                      --- Aahz (Copyright 2001 by aahz at pobox.com)

Androgynous poly kinky vanilla queer het    <*>     http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6

"I heard Commentary and Dissent had merged and formed Dysentary."



More information about the Python-list mailing list