Where can I find the source code for the implementation of object.__new__. It shows as "built-in". I would like to see how it works.
>>> object.__new__
<built-in method __new__ of type object at 0x822060>
Where can I find the source code for the implementation of object.__new__. It shows as "built-in". I would like to see how it works.
>>> object.__new__
<built-in method __new__ of type object at 0x822060>
 
    
    Python3's object.__new__ is internal (built-in). It's not written in Python. You can find the C code for it as object_new(PyTypeObject *type, PyObject *args, PyObject *kwds) in typeobject.c.
