Allis Tauri added the comment:
Thanks for the suggestion.
method_to_typeid and create_method are documented features, so I don't see why
not. It does the trick in a cleaner way than my workaround: a metaclass for
MyClass that just checks the arguments before creating a new instance. It
New submission from Allis Tauri:
1. I have a tree-like recursive class MyClass. It's method 'get_child(i)'
returns an instanse of that same class.
2. I register this class with BaseManager as follows:
class MyManager(BaseManager): pass
MyManager.register('MyClass',