variables with dynamicly generated names

Gabriel Genellina gagsl-py at yahoo.com.ar
Thu Dec 14 04:13:21 EST 2006


At Thursday 14/12/2006 05:50, avlee wrote:

>Is it possible to use in python variables with dynamicly created names ?
>How ?

Use a dictionary:

d = {}
d[almost_arbitrary_key] = value


-- 
Gabriel Genellina
Softlab SRL 

__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar



More information about the Python-list mailing list