[Python-Dev] converting the stdlib to str.format (original) (raw)
Guido van Rossum guido at python.org
Tue Jun 3 16:37:11 CEST 2008
- Previous message: [Python-Dev] converting the stdlib to str.format
- Next message: [Python-Dev] converting the stdlib to str.format
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Tue, Jun 3, 2008 at 2:03 AM, Eric Smith <eric+python-dev at trueblade.com> wrote:
Georg Brandl wrote:
Martin v. Löwis schrieb:
In any case, I'm willing to give the TLC to convert the whole stdlib to str.format, so I just need your permission! Please don't - not before % is actually deprecated (which I hope won't happen until Python 4, with removal of % in Python 5, in the year when I retire, i.e. 2037). Now this is news to me -- was there a discussion that changed the lifetime expectancy of str.mod? I'd always supposed it being deprecated at some point in 3.x.
I think Martin was attempting humor. :-) There's widespread disagreement on when we should retire %.
Not that I'm opposed to keeping it... it will be a pain to migrate. Guido has previously said he wouldn't mind adding a PendingDeprecationWarning to %-formatting in 3.0. I've attempted to do that in http://bugs.python.org/issue2772. For a reason I don't understand, my change broke testdoctest.py, so I've never applied it.
For 3.0, it should be at best a SilentDeprecationWarning.
-- --Guido van Rossum (home page: http://www.python.org/~guido/)
- Previous message: [Python-Dev] converting the stdlib to str.format
- Next message: [Python-Dev] converting the stdlib to str.format
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]