Skip to content

Backport UserString move from 3.0 #47126

Closed

Description

@brettcannon
BPO 2877
Nosy @brettcannon, @rhettinger
Files
  • userstring_2.6.patch
  • userstring_import_fixer.patch
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = 'https://github.com/brettcannon'
    closed_at = <Date 2008-05-29.05:13:51.415>
    created_at = <Date 2008-05-16.04:50:05.218>
    labels = ['type-bug', 'library', 'release-blocker']
    title = 'Backport UserString move from 3.0'
    updated_at = <Date 2008-05-29.05:13:51.414>
    user = 'https://github.com/brettcannon'

    bugs.python.org fields:

    activity = <Date 2008-05-29.05:13:51.414>
    actor = 'brett.cannon'
    assignee = 'brett.cannon'
    closed = True
    closed_date = <Date 2008-05-29.05:13:51.415>
    closer = 'brett.cannon'
    components = ['Library (Lib)']
    creation = <Date 2008-05-16.04:50:05.218>
    creator = 'brett.cannon'
    dependencies = []
    files = ['10454', '10455']
    hgrepos = []
    issue_num = 2877
    keywords = ['patch']
    message_count = 10.0
    messages = ['66901', '66906', '67091', '67358', '67363', '67416', '67420', '67433', '67435', '67472']
    nosy_count = 3.0
    nosy_names = ['brett.cannon', 'rhettinger', 'quentin.gallet-gilles']
    pr_nums = []
    priority = 'release blocker'
    resolution = 'accepted'
    stage = None
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue2877'
    versions = ['Python 2.6']

    Activity

    1. brettcannon commented on May 16, 2008

      @brettcannon
      MemberAuthor

      The UserString class was moved from its own module to the collections
      module. That change needs to be backported.

    2. added
      stdlibStandard Library Python modules in the Lib/ directory
      type-bugAn unexpected behavior, bug, or error
      on May 16, 2008
    3. rhettinger commented on May 16, 2008

      @rhettinger
      Contributor

      Same questions as for UserDict. Why backport this and break existing
      2.5 code? There's no benefit.

    4. brettcannon commented on May 20, 2008

      @brettcannon
      MemberAuthor

      Is MutableString in the UserString module (and any other class) properly
      handled in 2.6 for transitioning to 3.0?

      And there is currently no fixer for UserString (same for UserDict).

    5. brettcannon commented on May 26, 2008

      @brettcannon
      MemberAuthor

      Raymond, can you tell me exactly where each module-level thing in
      UserString went and if it was renamed or not? That way the fixer can get
      written.

    6. rhettinger commented on May 26, 2008

      @rhettinger
      Contributor

      It was moved to the collections module.

    7. quentingallet-gilles commented on May 27, 2008

      quentingallet-gillesmannequin
      Mannequin

      I only see UserString in the collections module. Has MutableString been
      removed in 3.0 ?

    8. rhettinger commented on May 27, 2008

      @rhettinger
      Contributor

      Yes.

    9. quentingallet-gilles commented on May 27, 2008

      quentingallet-gillesmannequin
      Mannequin

      Attaching a patch for the deprecation warning in 2.6 of the
      MutableString class. The import fixer for 2to3 is coming next.

    10. rhettinger commented on May 27, 2008

      @rhettinger
      Contributor

      Nice patch. Thanks.

    11. brettcannon commented on May 29, 2008

      @brettcannon
      MemberAuthor

      r63767 has the 2.6 changes (with the block in 3.0 in r63768). r63769 has
      the fixer in 2to3 in the sandbox.

      Thanks for the patches, Quentin.

    12. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    Labels

    release-blockerstdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions