Skip to content

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