christian heimes wluhecheimesde haoyu bai schrieb know bug however exception language python trying avoid since c function extension module treated builtin function method problem maybe bigger looks like swigs case originally uses newinstancemethod generate unbound method c function dll module code snippet looks like class testbaseobject proxy c testbase class unrelated code omitted pass _testtestbase_test c function _test dll module testbasetest newinstancemethod_testtestbase_testnonetestbase corresponding way python 3 workaround found types import methodtype class testbaseobject proxy c testbase class def __init__self args initialization code selftest methodtype_testtestbase_test self changed original code structure migration would complicated better way get rid ive implemented wrapper problem ago objectclassobjectcpyinstancemethod_type wrapper currently available python code easy make public christian _______________________________________________ python3000 mailing list smsbmo9552pythonorg httpmailpythonorgmailmanlistinfopython3000 unsubscribe httpmailpythonorgmailmanoptionspython3000python300040tangomucom fri 08 aug 2008 044639 0200 python3000 binding builtin function class