MCPcopy Index your code
hub / github.com/RustPython/RustPython / __new__

Method __new__

Lib/test/test_descr.py:5785–5788  ·  view source on GitHub ↗
(mcls, name, bases, attrs)

Source from the content-addressed store, hash-verified

5783 Sets default __doc__ and simplifies repr() output.
5784 """
5785 def __new__(mcls, name, bases, attrs):
5786 if attrs.get('__doc__') is None:
5787 attrs['__doc__'] = name # helps when debugging with gdb
5788 return type.__new__(mcls, name, bases, attrs)
5789 def __repr__(cls):
5790 return repr(cls.__name__)
5791

Callers 15

__new__Method · 0.45
__new__Method · 0.45
__new__Method · 0.45
__new__Method · 0.45
__new__Method · 0.45
__new__Method · 0.45
__new__Method · 0.45
__new__Method · 0.45
__new__Method · 0.45
__new__Method · 0.45
__new__Method · 0.45
__new__Method · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected