Richard Thomas <chards...@gmail.com> writes: > That isn't an error that should occur, not least because _[1] isn't a > valid name. Can you post a full traceback?
The name _[n] is used internally when compiling list comprehensions. The name is chosen precisely because it is not an (otherwise) valid identifier. For example, try: import dis dis.dis(lambda: [ a for a in l ]) The user should never see _[n]; if he does, it's probably due to a bug in Python. -- http://mail.python.org/mailman/listinfo/python-list