Fix for Python 3 versus Python 2 where the PyVarObject is different. by eldiener · Pull Request #1 · boostorg/parameter_python · GitHub
Skip to content

Fix for Python 3 versus Python 2 where the PyVarObject is different. - #1

Merged
eldiener merged 2 commits into
boostorg:developfrom
eldiener:develop
Oct 25, 2018
Merged

Fix for Python 3 versus Python 2 where the PyVarObject is different.#1
eldiener merged 2 commits into
boostorg:developfrom
eldiener:develop

Conversation

@eldiener

Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread include/boost/parameter/python.hpp Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think that the Py_TYPE(o) macro is supposed to encapsulate the differences between 2 and 3, so if you use it, there would be no need to check the version.

@eldiener
eldiener merged commit 787d8d3 into boostorg:develop Oct 25, 2018
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.

2 participants