Skip to content
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

DM-10292: The FrameSet returned by Transform.getFrameSet can change the contained FrameSet in Python #221

Merged
merged 1 commit into from Apr 20, 2017

Conversation

r-owen
Copy link
Contributor

@r-owen r-owen commented Apr 20, 2017

In Python make sure the FrameSet returned by Transform.getFrameSet
is independent of the contained FrameSet by returning a copy.
Add a test for this.
The C++ API is unchanged because it returns a const FrameSet.
(Python does not respect const).

In Python make sure the FrameSet returned by Transform.getFrameSet
is independent of the contained FrameSet by returning a copy.
Add a test for this.
The C++ API is unchanged because it returns a const FrameSet.
(Python does not respect `const`).
Copy link
Member

@kfindeisen kfindeisen left a comment

Choose a reason for hiding this comment

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

I like the test, but why do you have to use a lambda in pybind11 instead of a return value policy? Would that merely copy the pointer rather than the FrameSet?

Never mind, just remembered that FrameSets don't have copy constructors.

@r-owen r-owen merged commit 249a70f into master Apr 20, 2017
@ktlim ktlim deleted the tickets/DM-10292 branch August 25, 2018 06:43
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.

None yet

2 participants