Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd Include/call.h file #7909
Conversation
jdemeyer
requested a review
from python/windows-team
as a
code owner
Jun 25, 2018
the-knights-who-say-ni
added
the
CLA signed
label
Jun 25, 2018
bedevere-bot
added
the
awaiting review
label
Jun 25, 2018
This comment has been minimized.
This comment has been minimized.
|
I don't think this type of refactoring is worth enough, but OK if really make PEP 580 easier. |
This comment has been minimized.
This comment has been minimized.
And how am I supposed to know which semi-public APIs are used by other 3rd parties? I think it's safest to put everything in a public header file, unless you have specific suggestions on what should really be considered private. |
This comment has been minimized.
This comment has been minimized.
Your suggestion make all private APIs meaningless. Of course, some public APIs are implemented as macro, and private APIs used by the macros should be exposed too. |
This comment has been minimized.
This comment has been minimized.
|
And |
This comment has been minimized.
This comment has been minimized.
At least, I can't agree here. "Implemented in which file" is implementation detail. So, unless "This will make it easier to work on PEP 580 and friends, " is described more concretely, I'm -1 on this. |
This comment has been minimized.
This comment has been minimized.
Why do you insist so much on there being a need to do something? Of course, there is no need for this PR. Sure, it doesn't fix any bugs. But why should it be refused on that basis? Mild refactoring and clean up which makes code easier to read should be considered a good thing. The reason I opened this PR is that, while working on PEP 580, I personally found it not so easy to find out what was declared where. I also didn't find a good place to add new declarations that I wanted to add to implement PEP 580. |
This comment has been minimized.
This comment has been minimized.
Moving code around makes:
I don't feel this refactoring is really makes code easier to read. I even think |
vstinner
requested changes
Jun 26, 2018
|
I'm not convinced that this PR makes the code easier to maintain: https://mail.python.org/pipermail/python-dev/2018-June/154088.html |
bedevere-bot
added
awaiting changes
and removed
awaiting review
labels
Jun 26, 2018
This comment has been minimized.
This comment has been minimized.
bedevere-bot
commented
Jun 26, 2018
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
This comment has been minimized.
This comment has been minimized.
|
@vstinner: can you clarify what you mean with "awaiting changes"? My impression from reading python-dev is that this PR is going to be rejected anyway. |
This comment has been minimized.
This comment has been minimized.
I suggest to reject this PR. I clicked on "Request change" to "vote -1". |
This comment has been minimized.
This comment has been minimized.
|
Thanks for the clarification (it was not clear to me whether your reaction was neutral or negative). I'll close it when the python-dev discussion dies out. In particular, I would like the opinion of @ncoghlan |
jdemeyer
added a commit
to jdemeyer/cpython
that referenced
this pull request
Jun 26, 2018
This comment has been minimized.
This comment has been minimized.
|
I don't really know what to make of Nick Coghlan's post on python-dev, but I guess nobody will mind closing and burying this PR. |
jdemeyer
closed this
Jun 28, 2018
This comment has been minimized.
This comment has been minimized.
|
The short version of my python-dev post is that I think the proposed abstract.h -> call.h function prototype extraction is a decent idea, but I don't like the proposed changes to the API headers for the concrete object definitions. |
jdemeyer commentedJun 25, 2018
This is purely moving code, no functionality or implementation is changed.
In #12, a new file
Objects/call.cwas added and most code implementing function calls was moved there. However, the include files were not changed. The declarations for the functions implemented inObjects/call.care in many different places. It seems like a good idea to make this consistent and put these all together inInclude/call.hinstead.This will make it easier to work on PEP 580 and friends, as well as turning
METH_FASTCALLinto a public interface.CC @ncoghlan @methane @vstinner