[3.6] bpo-31926: fix missing *_METHODDEF statements by argument clinic (GH-4230) by taleinat · Pull Request #4253 · python/cpython

@taleinat

pythonGH-4230)

When a single .c file contains several functions and/or methods with
the same name, a safety _METHODDEF GH-define statement is generated
only for one of them.

This fixes the bug by using the full name of the function to avoid
duplicates rather than just the name..
(cherry picked from commit 4f57409)

serhiy-storchaka