Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e689cdc

Browse files
authored
bpo-43677: Fix a minor error in Doc/howto/descriptor.rst (#25123)
It should be PyMethod_Type, not Py_MethodType.
1 parent 652bfde commit e689cdc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/howto/descriptor.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1064,7 +1064,7 @@ roughly equivalent to:
10641064
.. testcode::
10651065

10661066
class MethodType:
1067-
"Emulate Py_MethodType in Objects/classobject.c"
1067+
"Emulate PyMethod_Type in Objects/classobject.c"
10681068

10691069
def __init__(self, func, obj):
10701070
self.__func__ = func

0 commit comments

Comments
 (0)