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/2018-June/153876.html below:

[Python-Dev] Python3 compiled listcomp can't see local var

[Python-Dev] Python3 compiled listcomp can't see local var - bug or feature? [Python-Dev] Python3 compiled listcomp can't see local var - bug or feature?Greg Ewing greg.ewing at canterbury.ac.nz
Mon Jun 11 19:08:50 EDT 2018
Skip Montanaro wrote:
> Yes, you'll have to pass in locals to exec.

Exec changed between python 2 and 3. It used to be treated
specially by the compiler so that it could see and modify
the locals where it was used. But now it's just an ordinary
function, so you can't expect it to magically know about
anything that's not passed into it.

-- 
Greg

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