PyInstance_New fails with new Python classes

Michael Hudson mwh at python.net
Wed Mar 26 09:05:04 EST 2003


I should warn you that no research at all has gone into this reply.

"Dmitri Mouromtsev" <dimour at mail.ru> writes:

> I have new python class derived from 'object' in my module:
[...]
> classes (they have type PyType_Type).
> So, how can I create instances in embedded python?

The same way you do in Python, I think: call the type object.

Cheers,
M.

-- 
  There are 'infinite' number of developed artifacts and one cannot
  develop appreciation for them all.  It would be all right to not
  understand something, but it would be imbecilic to put judgements
  on things one don't understand.               -- Xah, comp.lang.lisp




More information about the Python-list mailing list