New submission from Brett Cannon [EMAIL PROTECTED]:
intern() needs to be added as sys.intern(). Then a 2to3 fixer needs to
be written.
--
components: Interpreter Core
keywords: 26backport
messages: 63698
nosy: brett.cannon
priority: immediate
severity: normal
status: open
title:
Benjamin Peterson [EMAIL PROTECTED] added the comment:
Here's a patch which moves intern to sysmodule.c, adds a Py3k warning,
updates the docs, and moves the tests.
--
keywords: +patch
nosy: +benjamin.peterson
Added file: http://bugs.python.org/file9698/backport_sys_intern.patch
Changes by Brett Cannon [EMAIL PROTECTED]:
--
priority: immediate - urgent
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2339
__
___
Python-bugs-list mailing list
Raymond Hettinger [EMAIL PROTECTED] added the comment:
Guido, do you want this alias in Py2.6?
Seems like it should just be a 2-to-3 fixer issue only.
Also, I vaguely remembered that we weren't going to expose interning at
all. There was a discussion on python-dev a couple years ago where I
Guido van Rossum [EMAIL PROTECTED] added the comment:
I see no great advantage in having it backported, though I also don't
see no great harm.
Since we still use interning as an internal speed-up, I believe in
exposing the API, past discussions notwithstanding.
--
priority: urgent -
Raymond Hettinger [EMAIL PROTECTED] added the comment:
Okay thanks. Closing this one as something that isn't really needed.
--
resolution: - rejected
status: open - closed
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2339