Docs: update docs of copy#105547
Conversation
|
This PR is stale because it has been open for 30 days with no activity. |
serhiy-storchaka
left a comment
There was a problem hiding this comment.
This is incorrect place for "immutable object". "Does not copy" means that it raises an exception for such types. For immutable objects the behavior is similar to functions and classes, except that it is natural and does not need rational. So, if add clarification for immutable objects, I would insert a separate sentence between the cases "does not copy" and "copy" in quotes. The latter would need to be modified to avoid repeating.
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
Updating reason: I meet many python developers who use
copymodule, but they don't know thecopymodule don't copy or deepcopy the immutable object. So I update this doc simply to make sure the user undertand this point clearly.📚 Documentation preview 📚: https://cpython-previews--105547.org.readthedocs.build/