Skip to content

Instantly share code, notes, and snippets.

@Tinche
Created April 20, 2017 22:49
Show Gist options
  • Select an option

  • Save Tinche/111ccd2f46c9ba303b8e441d2e0fcddb to your computer and use it in GitHub Desktop.

Select an option

Save Tinche/111ccd2f46c9ba303b8e441d2e0fcddb to your computer and use it in GitHub Desktop.
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