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/2001-January/011807.html below:

[Python-Dev] Re: bug in grammar

[Python-Dev] Re: bug in grammar [Python-Dev] Re: bug in grammarJeremy Hylton jeremy@alum.mit.edu
Thu, 18 Jan 2001 10:15:25 -0500 (EST)
If I summarize your suggestion, I think you've said that ideally the
grammar should not allow assignment to list comprehensions (or a
variety of other constructs) -- but it doesn't so the compiler has to
deal with it.

This morning it seemed a lot easier to fix the bug than it did last
night :-).  com_assign() already has a number of checks for syntax
errors in assignments.  A test for list comprehensions belongs at the
same place as tests for assignment to [] and augmented assignments
applied to lists.

I'll include a fix for assignment to list comprehensions in my big
compiler patch.

Jeremy




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