Skip to content

bpo-30866: Add _testcapi.stack_pointer() #2601

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 10, 2017
Merged

bpo-30866: Add _testcapi.stack_pointer() #2601

merged 1 commit into from
Jul 10, 2017

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Jul 6, 2017

No description provided.

int v = 5;
Py_uintptr_t sp = (Py_uintptr_t)&v;

return PyLong_FromUnsignedLongLong(sp);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not use PyLong_FromVoidPtr()?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know. I changed my PR to use PyLong_FromVoidPtr().

@vstinner vstinner merged commit 64fa449 into python:master Jul 10, 2017
@vstinner vstinner deleted the testcapi_stack_pointer_master branch July 10, 2017 12:37
ma8ma added a commit to ma8ma/cpython that referenced this pull request Jul 13, 2017
Resolve conflicts:
64fa449 bpo-30866: Add _testcapi.stack_pointer() (python#2601)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants