zopefoundation / persistent

automatic persistence for Python objects
https://pypi.org/project/persistent/
Other
46 stars 28 forks source link

Include the module in the C repr #97

Closed jamadden closed 6 years ago

jamadden commented 6 years ago

Fix the repr of the persistent objects to include the module name when using the C extension. This matches the pure-Python behaviour and the behaviour prior to 4.4.0.

Do so by getting the __module__ and __name__ attributes of the type, just like the Python version. Credit to @mgedmin for the suggestion.

Fixes #92

Rotonen commented 6 years ago

@jamadden I owe you a $BEVERAGE should our paths ever cross.