On Mon, 23 May 2016, John Cremona wrote:

Are we not allowed to use

print("x = %s" % x)

any more?

https://docs.python.org/release/3.1.5/library/stdtypes.html#old-string-formatting-operations says "The formatting operations described here are obsolete and may go away in future versions of Python."

Hence I guess no new code should use percent sign any more. But what comes to changing old print statements, I think it is OK to just make them Python3-compliant.

--
Jori Mäntysalo

Reply via email to