Re: [Tutor] object names

2007-07-08 Thread Luke Paireepinart
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

Re: [Tutor] object names

2007-07-08 Thread elis aeris
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

Re: [Tutor] object names

2007-07-08 Thread Alan Gauld
"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

Re: [Tutor] object names

2007-07-08 Thread elis aeris
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