RE: Myth Busters: % this old style of formatting will eventually be removed from the language

2013-05-22 Thread Carlos Nepomuceno
Ok. Thanks! bugs.python.org/issue18031 Date: Tue, 21 May 2013 23:26:58 -0400 From: n...@nedbatchelder.com To: carlosnepomuc...@outlook.com CC: python-list@python.org Subject: Re: Myth Busters: % this old style of formatting will eventually be

Re: Myth Busters: % this old style of formatting will eventually be removed from the language

2013-05-22 Thread Skip Montanaro
Is this tutorial outdated or this still an issue? [1] http://docs.python.org/2/tutorial/inputoutput.html#old-string-formatting That tutorial is out of date. %-formatting isn't being removed. OTOH, PEP 3101 also mentions deprecation, at the very end: ... both systems can co-exist until it

Re: Myth Busters: % this old style of formatting will eventually be removed from the language

2013-05-22 Thread Denis McMahon
On Tue, 21 May 2013 23:26:58 -0400, Ned Batchelder wrote: On 5/21/2013 10:26 PM, Carlos Nepomuceno wrote: Since str.format() is quite new, a lot of Python code still uses the % operator. However, because this old style of formatting will eventually be removed from the language, str.format()

Re: Myth Busters: % this old style of formatting will eventually be removed from the language

2013-05-22 Thread Terry Jan Reedy
On 5/22/2013 10:24 AM, Denis McMahon wrote: Indeed, removing %-formatting could break a substantial amount of live code, with potentially significant maintenance effort in the user While I would like to see % formatting go away everntually*, other developers would not. In any case, I agree

Re: Myth Busters: % this old style of formatting will eventually be removed from the language

2013-05-22 Thread nn
On May 22, 6:35 am, Skip Montanaro s...@pobox.com wrote: Is this tutorial outdated or this still an issue? [1] http://docs.python.org/2/tutorial/inputoutput.html#old-string-formatting That tutorial is out of date.  %-formatting isn't being removed. OTOH, PEP 3101 also mentions

Re: Myth Busters: % this old style of formatting will eventually be removed from the language

2013-05-21 Thread Ethan Furman
On 05/21/2013 07:26 PM, Carlos Nepomuceno wrote: I was looking for something else and just found what I think is the place where I was first exposed to the myth[1]: Since str.format() is quite new, a lot of Python code still uses the % operator. However, because this old style of formatting

Re: Myth Busters: % this old style of formatting will eventually be removed from the language

2013-05-21 Thread Ned Batchelder
On 5/21/2013 10:26 PM, Carlos Nepomuceno wrote: I was looking for something else and just found what I think is the place where I was first exposed to the myth[1]: Since str.format() is quite new, a lot of Python code still uses the % operator. However, because this old style of formatting