Lines Matching refs:copy_reg
7 import copy_reg
91 if code in copy_reg._inverted_registry:
92 self.pair = copy_reg._inverted_registry[code]
93 copy_reg.remove_extension(self.pair[0], self.pair[1], code)
100 curpair = copy_reg._inverted_registry.get(code)
102 copy_reg.remove_extension(curpair[0], curpair[1], code)
105 copy_reg.add_extension(pair[0], pair[1], code)
638 copy_reg.pickle(pickling_metaclass, pickling_metaclass.__reduce__)
788 # Register a type with copy_reg, with extension code extcode. Pickle
795 copy_reg.add_extension(__name__, "MyList", extcode)