How can I exec() in global?

Michel Claveau - abstraction méta-galactique non triviale en fuite perpétuelle. unseulmcmcmcmc at msupprimerlepoint.claveauPOINTcom
Sat Sep 11 23:52:53 CEST 2004


Hi too !



You can, also, to do :

def foo():
    exec ('''global X
X=[1,2,3]''')



@-salutations
-- 
Michel Claveau






More information about the Python-list mailing list