List comprehension - NameError: name '_[1]' is not defined ?
ajaksu
ajaksu at gmail.com
Thu Jan 15 20:30:25 EST 2009
More information about the Python-list mailing list
Thu Jan 15 20:30:25 EST 2009
- Previous message (by thread): List comprehension - NameError: name '_[1]' is not defined ?
- Next message (by thread): List comprehension - NameError: name '_[1]' is not defined ?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Jan 15, 8:21 pm, mario ruggier <mario.rugg... at gmail.com> wrote: > OK! Here's a small script to make it easier... Thanks! I think I found a quick way around the restrictions (correct me if I borked it), but I think you can block this example by resetting your globals/builtins: exprs = [ '(x for x in range(1)).gi_frame.f_globals.clear()', 'open("where_is_ma_beer.txt", "w").write("Thanks for the fun ")' ] Regards, Daniel
- Previous message (by thread): List comprehension - NameError: name '_[1]' is not defined ?
- Next message (by thread): List comprehension - NameError: name '_[1]' is not defined ?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list