Skip to content

Added Implementations of __copy__ and __deepcopy__ to show which objects are allowed to be copied and which not.#50

Merged
birkholz-cubert merged 1 commit intomainfrom
feature/add_deep_copy_func
Jan 21, 2025
Merged

Added Implementations of __copy__ and __deepcopy__ to show which objects are allowed to be copied and which not.#50
birkholz-cubert merged 1 commit intomainfrom
feature/add_deep_copy_func

Conversation

@birkholz-cubert
Copy link
Copy Markdown
Collaborator

If an object is not allowed to be copied, the __copy__ or __deepcopy__ functions is implemented but will raise a TypeError on execution.
Currently only Measurement has support for a deep copy operation (out of all the objects that manage a handle)
For objects that do not manage a sdk handle, the normal python copy behaviour is enough.

@birkholz-cubert birkholz-cubert merged commit 13ba8a6 into main Jan 21, 2025
@birkholz-cubert birkholz-cubert deleted the feature/add_deep_copy_func branch April 7, 2025 07:46
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