gh-98963: Add a note to the error for property subclasses without __doc__ by encukou · Pull Request #99058 · python/cpython · GitHub
Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions Lib/test/test_property.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Add a note to the ``AttributeError`` raised when instantiating a subclass of
:py:class:`property` that does not have a writable ``__doc__`` attribute.
(Creating such a subclass is possible via the C API.)
22 changes: 21 additions & 1 deletion Objects/descrobject.c