printing variables
hanumizzle
hanumizzle at gmail.com
Fri Oct 6 05:58:08 EDT 2006
More information about the Python-list mailing list
Fri Oct 6 05:58:08 EDT 2006
- Previous message (by thread): printing variables
- Next message (by thread): [Linux] Detect a key press
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 10/6/06, Gerrit Holl <gerrit at nl.linux.org> wrote: > >>> import fnmatch > >>> var1, var2, var3 = "foo", "bar", "baz" > >>> for k in fnmatch.filter(locals(), "var*"): > ... print locals()[k] > ... > foo > baz > bar > > This is evil. > It's unpythonic. It's so evil, Perl 4 would look upon it in scorn. -- Theerasak
- Previous message (by thread): printing variables
- Next message (by thread): [Linux] Detect a key press
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list