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