Skip to content

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

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 2 commits into from
Oct 25, 2018
Merged

Conversation

eldiener
Copy link
Collaborator

No description provided.

@@ -64,12 +63,24 @@ namespace boost { namespace parameter { namespace python { namespace aux
Py_TPFLAGS_DEFAULT, /* tp_flags */
0, /* tp_doc */
};

#if PY_MAJOR_VERSION <= 2
Copy link
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