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:
Zackery Spytz 2021-04-01 11:03:33 -06:00 committed by GitHub
parent 652bfdee94
commit e689cdca3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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