unittest: Dynamically creating tests

Michele Simionato mis6 at pitt.edu
Wed Jun 11 23:09:05 CEST 2003


Steven Taschuk <staschuk at telusplanet.net> wrote in message news:<mailman.1055356374.23599.python-list at python.org>...
> 
> There's also
>     globals()['foo'] = 'bar'
> and, of course, exec.
> 

I seems to remember (from reading the standard library) 
that assigning directly to globals() is not recommended; am
I correct ? What can go wrong with this?

speaking-about-good-style-rules-ly, ;)


                          Michele




More information about the Python-list mailing list