Showing content from http://mail.python.org/pipermail/python-dev/attachments/20130428/82145e39/attachment.html below:
<p dir="ltr"><br>
On 28 Apr 2013 04:30, "Ethan Furman" <<a href="mailto:ethan@stoneleaf.us">ethan@stoneleaf.us</a>> wrote:<br>
><br>
> I filed bug <a href="http://bugs.python.org/issue17853">http://bugs.python.org/issue17853</a> last night.<br>
><br>
> If somebody could point me in the right direction (mainly which files to look in), I'd be happy to attempt a patch.</p>
<p dir="ltr">Hmm, interesting challenge. A key part of the problem is that the 3.x compiler assumes there's no way to inject names it doesn't know about into code inside a function - we missed the fact that you could still do it with a nested class and a metaclass __prepare__ method.</p>
<p dir="ltr">I suspect resolving it sensibly will require a new opcode that tries a local-only load and then falls back to loading from a cell rather than from a global/builtins lookup.<br>
<br>
Cheers,<br>
Nick.</p>
<p dir="ltr">><br>
> --<br>
> ~Ethan~<br>
> _______________________________________________<br>
> Python-Dev mailing list<br>
> <a href="mailto:Python-Dev@python.org">Python-Dev@python.org</a><br>
> <a href="http://mail.python.org/mailman/listinfo/python-dev">http://mail.python.org/mailman/listinfo/python-dev</a><br>
> Unsubscribe: <a href="http://mail.python.org/mailman/options/python-dev/ncoghlan%40gmail.com">http://mail.python.org/mailman/options/python-dev/ncoghlan%40gmail.com</a><br>
</p>
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