"Michael Foord" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] <snip> > It worries me that there might be a valid expression allowed here that I > haven't thought of. My current rules allow anything that looks like > ``(a, [b, c, (d, e)], f)`` - any nested identifier list. Would anything > else be allowed ?
Anything that goes in the left hand side of an assignment: # example 1 >>> a=[1,2] >>> for a[0] in xrange(10): pass # example 2 >>> class A(object): pass >>> a=A() >>> for a.x in xrange(10): pass _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com