[3.12] gh-98963: Restore the ability to have a dict-less property. (GH-105262) by miss-islington · Pull Request #105297 · python/cpython · GitHub
Skip to content
Merged
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
61 changes: 56 additions & 5 deletions Lib/test/test_property.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Restore the ability for a subclass of :class:`property` to define ``__slots__``
or otherwise be dict-less by ignoring failures to set a docstring on such a
class. This behavior had regressed in 3.12beta1. An :exc:`AttributeError`
where there had not previously been one was disruptive to existing code.
45 changes: 37 additions & 8 deletions Objects/descrobject.c