Author: Armin Rigo <ar...@tunes.org>
Branch: extradoc
Changeset: r5756:234907e53211
Date: 2016-12-02 10:51 +0100
http://bitbucket.org/pypy/extradoc/changeset/234907e53211/

Log:    next cpython bug

diff --git a/planning/py3.5/cpython-crashers.rst 
b/planning/py3.5/cpython-crashers.rst
--- a/planning/py3.5/cpython-crashers.rst
+++ b/planning/py3.5/cpython-crashers.rst
@@ -204,6 +204,18 @@
   the first line.  Otherwise I guess the timings happen to make that test
   pass.
 
+* CPython 3.5.2: this ``nonlocal`` seems not to have a reasonable
+  effect (note that if we use a different name instead of ``__class__``,
+  this example correctly complain that there is no binding in the outer
+  scope of ``Y``)::
+
+    class Y:
+        class X:
+            nonlocal __class__
+            __class__ = 42
+        print(locals()['__class__'])     # 42
+        print(__class__)                 # but this is a NameError
+
 
 Other issues of "dubious IMHO" status
 -------------------------------------
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to