New submission from Antoine Pitrou <pit...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue47153>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to