A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2006-April/064520.html below:

[Python-Dev] Python Grammar Ambiguity

[Python-Dev] Python Grammar Ambiguity [Python-Dev] Python Grammar AmbiguityChristos Georgiou tzot at mediconsa.com
Fri Apr 28 09:33:34 CEST 2006
"Michael Foord" <fuzzyman at voidspace.org.uk> wrote in message 
news:444CD3DB.7050704 at voidspace.org.uk...
<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


More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4