elis aeris wrote:
> ugh, i guess what I need is just to name variables, not objects.
>
>
> var_1
> var_2
>
> and so on.
Did you read what Alan said?
He gave you a way to do this without using separate variables.
There are many problems associated with creating variable names dynamically,
and you h
ugh, i guess what I need is just to name variables, not objects.
var_1
var_2
and so on.
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
"elis aeris" <[EMAIL PROTECTED]> wrote
> for instance, i need to create 5 object of names like these
>
> object_1
> object_2
> and so on,
It's very unlikely that you need to do this.
The usual solution in cases like this is to store the objects
in a collection object, either a list or a dictio
or it's not an object but common variables.
var_1
var_2
and so on
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor