Mercurial > cpython-lru_cache-weakref
diff Python/modsupport.c @ 70889:2d62ee4e7d98
use a invalid name for the __class__ closure for super() (closes #12370)
This prevents the assignment of __class__ in the class body from breaking
super. (Although a determined person could do locals()["@__class__"] = 4)
| author | Benjamin Peterson <benjamin@python.org> |
|---|---|
| date | Sun, 19 Jun 2011 19:42:22 -0500 |
| parents | 3c9232a684ae |
| children | 2d6d75eaf98c |
