On Aug 22, 5:41 pm, Stephen Hansen wrote:
> > 3) object's type is type : object.__class__ is type
> > 4) type parent object is object : type.__bases__ == (object,)
>
> Saying "type" and "parent" and the like for new-style classes is
> something of a misnomer. For "type" and "object", these things
On Aug 22, 1:57 pm, Steven D'Aprano wrote:
> The relationship between type and object is somewhat special, and needs to
> be bootstrapped by the CPython virtual machine.
Since you are talking about CPython, I'm wondering how it is
bootstraped since you can easly reference PyType in PyObject tha
I'm learning a bit of python internals lately and I'm trying to figure
out the
relationship between type, objects, class, callables and
__getattribute__ resolution.
While understanding Python mechanics/concepts, I'm trying to figure
how it
translates in CPython. This post is Python centric. Questi