who is calling the base class __new__ method

2009-04-21 Thread Andreas Otto
Hi, I have the following example: 1. I create a new type in C with it's own tp_new called PyMqS_new 2. I use this type as basis-class for a python class called Server. class Server(pymsgque.MqS): - I checked: self.__class__.__bases__: (class 'pymsgque.PyMqS',)

Re: who is calling the base class __new__ method

2009-04-21 Thread Andreas Otto
Hi, found a solution - PyObject_GC_New seems not to be *not* the right function to create a new Python object with a base class included - PyType_GenericNew is the right one ... but this one is not documented from: http://docs.python.org/3.0/c-api/type.html

Re: who is calling the base class __new__ method

2009-04-21 Thread Aahz
In article gskaq4$uhp$0...@news.t-online.com, Andreas Otto aotto1...@onlinehome.de wrote: Question: What is the difference between these both functions and why is one working and the other not ? If you don't get an answer here, try capi-sig. -- Aahz (a...@pythoncraft.com)