Create copy constructor for Python #10
Labels
cpp-enhancement
An enhancement of the code that can likely be done completely on the C++ side.
enhancement
New feature or request
pybind-enhancement
An enhancement of the code that must likely be done on the Python/C++ interface.
unexpected-behaviour
Milestone
In Python, a lot of objects are mvoed around. When someone now creates and
fdModel
class and copies it, they actually reference the same object:I think this classifies as unexpected behaviour. There is no available copy constructor, and therefore to duplicate an
fdModel
object with its current state one has to go through the exercise of running all statements up to the duplication point multiple times.To hide some of this complexity, a copy constructor should be created in C++ and interfaced to Python.
The text was updated successfully, but these errors were encountered: