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

[FIX] Table - copy attributes when creating table from table #6189

Merged
merged 1 commit into from
Nov 4, 2022

Conversation

PrimozGodec
Copy link
Contributor

Issue

When the table is created from the table, the attributes dict is not copied, which means that changing attributes in the new table also change attributes in the original table.

Description of changes

Deep copy the attributes dictionary when creating a table with from_table or from_table_rows. As discussed at the meeting, the copy should be a deep copy also to copy the structures inside the dictionary, such as lists or sets.

Includes
  • Code changes
  • Tests
  • Documentation

@PrimozGodec PrimozGodec force-pushed the table-copy-attributes branch 2 times, most recently from 2137668 to 89cd5b1 Compare November 4, 2022 10:39
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