Issue 1683288: xreload.py won't update class docstrings (original) (raw)
""" def _update_class(oldclass, newclass): ... for name in oldnames & newnames - {"dict", "doc"}: setattr(oldclass, name, _update(olddict[name], newdict[name])) return oldclass """
I assume doc is skipped because a string can't be updated in place. But since oldclass is returned, doc should still be replaced with the updated documentation.