On 16/12/2019 11:12, R.Wieser wrote:
> According to me line "PWMType.tp_new = PyType_GenericNew;" creates a single
> instance, and than (one of the methods of) that instance is called thru
> accessing the tables "tp_new" field
>
OK I haven't programmed C for a quarter of a century, but isn't that
just assigning a function pointer to a field. As I recall C doesn't have
function "objects" so it doesn't instantiate an object for a function
pointer, a function pointer is just a pointer to the function.
Please ignore me if I have totally missed the point.
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|