[issue2339] Backport intern() - sys.intern()

2008-03-17 Thread Brett Cannon
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:

[issue2339] Backport intern() - sys.intern()

2008-03-17 Thread Benjamin Peterson
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

[issue2339] Backport intern() - sys.intern()

2008-03-17 Thread Brett Cannon
Changes by Brett Cannon [EMAIL PROTECTED]: -- priority: immediate - urgent __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2339 __ ___ Python-bugs-list mailing list

[issue2339] Backport intern() - sys.intern()

2008-03-17 Thread Raymond Hettinger
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

[issue2339] Backport intern() - sys.intern()

2008-03-17 Thread Guido van Rossum
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 -

[issue2339] Backport intern() - sys.intern()

2008-03-17 Thread Raymond Hettinger
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