-
-
Save Tinche/111ccd2f46c9ba303b8e441d2e0fcddb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import pyximport; pyximport.install() | |
| from frozen import FrozenSlotDescriptor | |
| class A(object): | |
| __slots__ = ('a',) | |
| A._old = A.a | |
| A.a = FrozenSlotDescriptor(A.a) | |
| a = A() | |
| a._old = 1 | |
| #a.a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment