Jesus Cea wrote:
Current pybsddb code don't allow subclassing or adding new attibutes to
a given instance. I will (probably) work on this for a future pybsddb
version. Pointers to references to do this kind of magic welcomed :-)

For making it subclass-able you have to add Py_TPFLAGS_BASETYPE to the type flags. In order to make new attributes possible you either need to mess around with tp_dict or tp_dictoffset. Grepping for _PyObject_GetDictPtr should give you some hints.

Christian
_______________________________________________
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to