mirror of https://github.com/python/cpython
bpo-43677: Fix a minor error in Doc/howto/descriptor.rst (#25123)
It should be PyMethod_Type, not Py_MethodType.
This commit is contained in:
parent
652bfdee94
commit
e689cdca3c
|
@ -1064,7 +1064,7 @@ roughly equivalent to:
|
|||
.. testcode::
|
||||
|
||||
class MethodType:
|
||||
"Emulate Py_MethodType in Objects/classobject.c"
|
||||
"Emulate PyMethod_Type in Objects/classobject.c"
|
||||
|
||||
def __init__(self, func, obj):
|
||||
self.__func__ = func
|
||||
|
|
Loading…
Reference in New Issue