bpo-31926: fix missing *_METHODDEF statements by argument clinic#4230
Conversation
When a single .c file contains several functions and/or methods with the same name, a safety _METHODDEF #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.
|
You have to run "make clinic": PR must included generated files. Running "make clinic" changes Modules/clinic/zlibmodule.c.h to add: So I think that you can remove the #ifdef in zlibmodule.c: |
Sorry, something went wrong.
|
I think it is worth to add a news entry into the "Build" section. |
Sorry, something went wrong.
|
Oh, and you can do the same change for ZLIB_COMPRESS_COPY_METHODDEF. |
Sorry, something went wrong.
|
I've done all that @serhiy-storchaka and @Haypo suggested. Please review the Note: This will require manual backporting. |
Sorry, something went wrong.
* add news entry * run "make clinic" * remove two #ifdef checks in zlibmodule.c which are no longer needed
fdc585a to
35a96e1
Compare
November 2, 2017 21:12
|
Thanks @taleinat for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.6. |
Sorry, something went wrong.
|
Sorry, @taleinat and @serhiy-storchaka, I could not cleanly backport this to |
Sorry, something went wrong.
|
Should I make the 3.6 backport? |
Sorry, something went wrong.
|
Yes, please do this. We will not convert new files to Argument Clinic in 3.6, and the existing files contain workarounds, but it is better to fix the bug. |
Sorry, something went wrong.
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)
GH-4230) (#4253) 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)
…hon#4230) When a single .c file contains several functions and/or methods with the same name, a safety _METHODDEF #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.
When a single .c file contains several functions and/or methods with the same name, a safety
_METHODDEF#defineblock 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.
https://bugs.python.org/issue31926