MCPcopy Index your code
hub / github.com/python/cpython / NoNew

Class NoNew

Lib/test/pickletester.py:4793–4797  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4791
4792# For test_bad_newobj_class and test_bad_newobj_ex__class
4793class NoNew:
4794 def __getattribute__(self, name):
4795 if name == '__new__':
4796 raise AttributeError
4797 return super().__getattribute__(name)
4798
4799
4800class AbstractPickleModuleTests:

Callers 2

test_bad_newobj_classMethod · 0.85

Calls

no outgoing calls

Tested by 2

test_bad_newobj_classMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…