Lines Matching defs:__new__
535 # It looks like ABCMeta.__new__ has finished running;
538 # It looks like ABCMeta.__new__ has not finished running yet; we're
1640 def __new__(cls, filename, lineno, function, code_context, index, *, positions=None):
1641 instance = super().__new__(cls, filename, lineno, function, code_context, index)
1712 def __new__(cls, frame, filename, lineno, function, code_context, index, *, positions=None):
1713 instance = super().__new__(cls, frame, filename, lineno, function, code_context, index)
2539 new = _signature_get_user_defined_method(obj, '__new__')
2543 # pure Python __new__ or __init__ method
2545 # Now we check if the 'obj' class has an own '__new__' method
2546 if new is not None and '__new__' in base.__dict__:
2559 # defined '__init__', '__new__', or class-level '__call__'
2584 # __init__ or __new__ for it
2586 obj.__new__ is object.__new__):
2608 # __call__, __new__, or __init__ methods
2637 def __new__(cls, description):
2639 member = int.__new__(cls, value)