(cls, base, state)
| 44 | # Support for pickling new-style objects |
| 45 | |
| 46 | def _reconstructor(cls, base, state): |
| 47 | if base is object: |
| 48 | obj = object.__new__(cls) |
| 49 | else: |
| 50 | obj = base.__new__(cls, state) |
| 51 | if base.__init__ != object.__init__: |
| 52 | base.__init__(obj, state) |
| 53 | return obj |
| 54 | |
| 55 | _HEAPTYPE = 1<<9 |
| 56 | _new_type = type(int.__new__) |