| 31 | |
| 32 | # Hashable immutable key object containing unheshable mutable data. |
| 33 | class K: |
| 34 | def __init__(self, value): |
| 35 | self.value = value |
| 36 | |
| 37 | def __reduce__(self): |
| 38 | # Shouldn't support the recursion itself |
| 39 | return K, (self.value,) |
| 40 | |
| 41 | class WithSlots(object): |
| 42 | __slots__ = ('a', 'b') |
no outgoing calls