Thanks! Only a minor correction: the last line should be _setdelegate(myint, int,'__%s__' % spec)
The business with f.func_name struck me as unnecessary, but I was quite wrong. This was an interesting exercise for me. Thanks. Michael -- http://mail.python.org/mailman/listinfo/python-list