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

Carlos Nepomuceno carlosnepomuceno at outlook.com
Wed May 22 01:59:54 EDT 2013


Ok. Thanks!

bugs.python.org/issue18031

----------------------------------------
> Date: Tue, 21 May 2013 23:26:58 -0400
> From: ned at nedbatchelder.com
> To: carlosnepomuceno at outlook.com
> CC: python-list at python.org
> Subject: Re: Myth Busters: % "this old style of formatting will eventually be removed from the language"
>
> 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 will eventually be removed from the language, str.format() should generally be used."
>>
>> 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.
>
> --Ned. 		 	   		  


More information about the Python-list mailing list