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/2004-September/049134.html below:

[Python-Dev] Odd compile errors for bad genexps

[Python-Dev] Odd compile errors for bad genexps [Python-Dev] Odd compile errors for bad genexpsTim Peters tim.peters at gmail.com
Wed Sep 29 22:30:10 CEST 2004
>>> (i for i in x) = 2
SystemError: assign to generator expression not possible

1. Why is that a SystemError instead of a SyntaxError?  SystemError
   doesn't make sense.
2. Why didn't it echo the offending line?

>>> (i for i in x) += 2
SyntaxError: augmented assign to tuple literal not possible

3. That's not a tuple literal.
4. See #2 <wink>.
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