An alternative I am fond of is to to avoid introducing a new type, and simply initialize a PyObject * and register its address.
-1 on that, because of the lack of error checking. Regards, Martin _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com