tp_base, ob_type, and tp_bases
Terry Reedy
tjreedy at udel.edu
Sat Jan 17 16:56:04 EST 2009
Martin v. Löwis wrote:
>> So, the documentation states that ob_type is a pointer to the type's
>> Next, we have tp_base. That's defined as "an optional pointer to a
>> base type from which type properties are inherited." The value of
>> tp_base is then added to the tp_bases tuple. This is confusing me. On
>> the surface, it sound as though they're one in the same?
>
> (I don't understand the English "one in the same" - interpreting it
> as "as though they should be the same")
Martin, you are not alone! I do not really understand that either.
More information about the Python-list
mailing list