Skip to content

3.13 copy.replace isn't in __all__ #121300

Closed

Description

@max-muoto

Bug report

Bug description:

copy.replace isn't exported as a part of __all__ in the copy module. This seemed liked an oversight, as opposed to being intentional, but feel free to close this issue if not.

CPython versions tested on:

3.13

Operating systems tested on:

No response

Linked PRs

Activity

  1. max-muoto commented on Jul 3, 2024

    @max-muoto
    ContributorAuthor
  2. pygeek commented on Jul 3, 2024

    @pygeek
    Contributor

    Nice catch:

    #108752

  3. Eclips4 commented on Jul 3, 2024

    @Eclips4
    Member

    Hello!
    Nice catch. This definitely should be in __all__ since this is part of the public API.
    Would you like to send a PR with fix?

  4. max-muoto commented on Jul 3, 2024

    @max-muoto
    ContributorAuthor

    Hello!

    Nice catch. This definitely should be in __all__ since this is part of the public API.

    Would you like to send a PR with fix?

    Will do! Thanks for catching @JelleZijlstra!

  5. added a commit that references this issue on Jul 3, 2024
  6. max-muoto commented on Jul 3, 2024

    @max-muoto
    ContributorAuthor
  7. serhiy-storchaka commented on Jul 3, 2024

    @serhiy-storchaka
    Member

    Sure, this is an oversight. pydoc copy should show replace.

  8. max-muoto commented on Jul 3, 2024

    @max-muoto
    ContributorAuthor

    Sure, this is an oversight. pydoc copy should show replace.

    Do you want a separate PR here (adding it to the module docstring)? Or can add it into the existing one I have.

  9. pygeek commented on Jul 3, 2024

    @pygeek
    Contributor

    @Eclips4 #121302

    I know this is a trivial change, but we should probably add a regression test for __all__. See support.test__all__ helper method in the test directory.

  10. serhiy-storchaka commented on Jul 3, 2024

    @serhiy-storchaka
    Member

    Adding it to the module docstring is also a good idea. You can include this in your PR or create a separate PR if you wish.

  11. max-muoto commented on Jul 3, 2024

    @max-muoto
    ContributorAuthor

    Adding it to the module docstring is also a good idea. You can include this in your PR or create a separate PR if you wish.

    Let me just do that in the current PR, I'm also going to add a test case.

  12. added a commit that references this issue on Jul 3, 2024
  13. added a commit that references this issue on Jul 3, 2024
  14. added a commit that references this issue on Jul 3, 2024
  15. Eclips4 commented on Jul 4, 2024

    @Eclips4
    Member

    Thanks!

  16. added a commit that references this issue on Jul 11, 2024
  17. added a commit that references this issue on Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.13only security fixes3.14bugs and security fixestype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions