Skip to content

Support copy.replace from 3.13 #1920

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

Open
sobolevn opened this issue Aug 29, 2024 · 0 comments · May be fixed by #1921 or #2093
Open

Support copy.replace from 3.13 #1920

sobolevn opened this issue Aug 29, 2024 · 0 comments · May be fixed by #1921 or #2093
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@sobolevn
Copy link
Member

There are two things that we need to do:

  1. Add 3.13 to CI
  2. Add __replace__ magic method https://docs.python.org/3.13/library/copy.html#object.__replace__ to Container base class, so we can support https://docs.python.org/3.13/library/copy.html#copy.replace
@sobolevn sobolevn added enhancement New feature or request good first issue Good for newcomers labels Aug 29, 2024
@Mr-Sunglasses Mr-Sunglasses linked a pull request Aug 29, 2024 that will close this issue
4 tasks
AdrianAcala pushed a commit to AdrianAcala/returns that referenced this issue Apr 14, 2025
…) support

- Added the __replace__ magic method to BaseContainer, enabling the creation of modified copies of immutable containers in line with Python 3.13's copy.replace() functionality.
- Updated documentation to include usage examples and clarify the behavior of the new method.
- Added tests to ensure the correct functionality of the __replace__ method and its integration with the copy module.
- Updated CHANGELOG to reflect this new feature and its implications for container usage.

Closes dry-python#1920.
AdrianAcala pushed a commit to AdrianAcala/returns that referenced this issue Apr 14, 2025
…) support

- Added the __replace__ magic method to BaseContainer, enabling the creation of modified copies of immutable containers in line with Python 3.13's copy.replace() functionality.
- Updated documentation to include usage examples and clarify the behavior of the new method.
- Added tests to ensure the correct functionality of the __replace__ method and its integration with the copy module.
- Updated CHANGELOG to reflect this new feature and its implications for container usage.

Closes dry-python#1920.
AdrianAcala pushed a commit to AdrianAcala/returns that referenced this issue Apr 14, 2025
…) support

- Added the __replace__ magic method to BaseContainer, enabling the creation of modified copies of immutable containers in line with Python 3.13's copy.replace() functionality.
- Updated documentation to include usage examples and clarify the behavior of the new method.
- Added tests to ensure the correct functionality of the __replace__ method and its integration with the copy module.
- Updated CHANGELOG to reflect this new feature and its implications for container usage.

Closes dry-python#1920.
AdrianAcala pushed a commit to AdrianAcala/returns that referenced this issue Apr 14, 2025
…) support

- Added the __replace__ magic method to BaseContainer, enabling the creation of modified copies of immutable containers in line with Python 3.13's copy.replace() functionality.
- Updated documentation to include usage examples and clarify the behavior of the new method.
- Added tests to ensure the correct functionality of the __replace__ method and its integration with the copy module.
- Updated CHANGELOG to reflect this new feature and its implications for container usage.

Closes dry-python#1920.
AdrianAcala pushed a commit to AdrianAcala/returns that referenced this issue Apr 14, 2025
…) support

- Added the __replace__ magic method to BaseContainer, enabling the creation of modified copies of immutable containers in line with Python 3.13's copy.replace() functionality.
- Updated documentation to include usage examples and clarify the behavior of the new method.
- Added tests to ensure the correct functionality of the __replace__ method and its integration with the copy module.
- Updated CHANGELOG to reflect this new feature and its implications for container usage.

Closes dry-python#1920.
AdrianAcala pushed a commit to AdrianAcala/returns that referenced this issue Apr 14, 2025
…) support

- Added the __replace__ magic method to BaseContainer, enabling the creation of modified copies of immutable containers in line with Python 3.13's copy.replace() functionality.
- Updated documentation to include usage examples and clarify the behavior of the new method.
- Added tests to ensure the correct functionality of the __replace__ method and its integration with the copy module.
- Updated CHANGELOG to reflect this new feature and its implications for container usage.

Closes dry-python#1920.
AdrianAcala pushed a commit to AdrianAcala/returns that referenced this issue Apr 14, 2025
…) support

- Added the __replace__ magic method to BaseContainer, enabling the creation of modified copies of immutable containers in line with Python 3.13's copy.replace() functionality.
- Updated documentation to include usage examples and clarify the behavior of the new method.
- Added tests to ensure the correct functionality of the __replace__ method and its integration with the copy module.
- Updated CHANGELOG to reflect this new feature and its implications for container usage.

Closes dry-python#1920.
AdrianAcala pushed a commit to AdrianAcala/returns that referenced this issue Apr 19, 2025
…) support

- Added the __replace__ magic method to BaseContainer, enabling the creation of modified copies of immutable containers in line with Python 3.13's copy.replace() functionality.
- Updated documentation to include usage examples and clarify the behavior of the new method.
- Added tests to ensure the correct functionality of the __replace__ method and its integration with the copy module.
- Updated CHANGELOG to reflect this new feature and its implications for container usage.

Closes dry-python#1920.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
1 participant