[New-bugs-announce] [issue47153] __doc__ should generally be writable

Antoine Pitrou report at bugs.python.org
Tue Mar 29 13:32:48 EDT 2022


New submission from Antoine Pitrou <pitrou at free.fr>:

The __doc__ attribute of several object types is not writable: notably descriptors (method/member/getset), as well builtin methods.

This is annoying when wanting to generate docstrings for these objects dynamically. While it's not useful for regular Python code, it comes up when using Cython, which uses these types to implement the methods and properties of "cdef" classes.

----------
components: Interpreter Core
messages: 416277
nosy: pitrou
priority: normal
severity: normal
status: open
title: __doc__ should generally be writable
type: enhancement
versions: Python 3.11

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue47153>
_______________________________________


More information about the New-bugs-announce mailing list