BPO | [2877](https://bugs.python.org/issue2877) --- | :--- Nosy | @brettcannon, @rhettinger Files | [userstring_2.6.patch](https://bugs.python.org/file10454/userstring_2.6.patch "Uploaded as text/plain at 2008-05-27.22:09:41 by quentin.gallet-gilles")[userstring_import_fixer.patch](https://bugs.python.org/file10455/userstring_import_fixer.patch "Uploaded as text/plain at 2008-05-27.22:09:57 by quentin.gallet-gilles") *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: ```python assignee = 'https://github.com/brettcannon' closed_at = created_at = labels = ['type-bug', 'library', 'release-blocker'] title = 'Backport UserString move from 3.0' updated_at = user = 'https://github.com/brettcannon' ``` bugs.python.org fields: ```python activity = actor = 'brett.cannon' assignee = 'brett.cannon' closed = True closed_date = closer = 'brett.cannon' components = ['Library (Lib)'] creation = 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
brettcannon commentedon May 16, 2008
The UserString class was moved from its own module to the collections
module. That change needs to be backported.
rhettinger commentedon May 16, 2008
Same questions as for UserDict. Why backport this and break existing
2.5 code? There's no benefit.
brettcannon commentedon May 20, 2008
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).
brettcannon commentedon May 26, 2008
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.
rhettinger commentedon May 26, 2008
It was moved to the collections module.
quentingallet-gilles commentedon May 27, 2008
I only see UserString in the collections module. Has MutableString been
removed in 3.0 ?
rhettinger commentedon May 27, 2008
Yes.
quentingallet-gilles commentedon May 27, 2008
Attaching a patch for the deprecation warning in 2.6 of the
MutableString class. The import fixer for 2to3 is coming next.
rhettinger commentedon May 27, 2008
Nice patch. Thanks.
brettcannon commentedon May 29, 2008
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.