jacebrowning / yorm

Automatic object-YAML mapping for Python.
https://yorm.readthedocs.io
MIT License
27 stars 6 forks source link

Maintain a class' "signature" #51

Closed jacebrowning closed 8 years ago

jacebrowning commented 9 years ago

Keep the same name:

Patched.__name__ = instance.__class__.__name__

docstring, etc. It might also be a good idea for the mapped class to be a subclass of the original.

jacebrowning commented 9 years ago

Potentially this could work by setting values in __dict__.