Skip to content

Commit 7f92fbe

Browse files
committed
add class-customization to pydoc topics
1 parent 8991bb2 commit 7f92fbe

3 files changed

Lines changed: 257 additions & 2 deletions

File tree

‎Doc/tools/extensions/pydoc_topics.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"callable-types",
4242
"calls",
4343
"class",
44+
"class-customization",
4445
"comparisons",
4546
"compound",
4647
"context-managers",

‎Lib/pydoc.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1865,7 +1865,7 @@ def collect_dunders(symbols):
18651865
'__format__', '__hash__', '__bool__',
18661866
]
18671867
for bd in basic_dunders:
1868-
dunders[bd] = ('customization', 'SPECIALMETHODS')
1868+
dunders[bd] = ('class-customization', 'SPECIALMETHODS')
18691869

18701870
attribute_dunders = [
18711871
'__getattr__', '__getattribute__', '__setattr__', '__delattr__',

‎Lib/pydoc_data/topics.py‎

Lines changed: 255 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)