Generator Comprehensions

Gustavo Niemeyer niemeyer at conectiva.com
Tue Jan 29 18:37:29 CET 2002


> When you disassemble the function you see a strange local named "_[1]":

>>> " ".join([locals().get("_[1]")("It's") or "obscure!" for x in [[]]])
"It's obscure!"

:-)

I-m-not-drunk-ly y'rs

-- 
Gustavo Niemeyer

[ 2AAC 7928 0FBF 0299 5EB5  60E2 2253 B29A 6664 3A0C ]




More information about the Python-list mailing list