Roundup Robot added the comment:
New changeset ed2511c23dae by Benjamin Peterson in branch 'default':
make __doc__ mutable on heaptypes (closes #12773)
http://hg.python.org/cpython/rev/ed2511c23dae
--
nosy: +python-dev
resolution: -> fixed
stage: -> committed/rejected
status: open ->
New submission from Eric Snow :
Apparently docstrings for classes are immutable:
>>> class X:
... "some doc"
...
>>> X.__doc__
'some doc'
>>> X.__doc__ = "another doc"
Traceback (most recent call last):
File "", line 1, in
AttributeError: attribute '__doc__' of 'type' objects is not writab