On 1/1/2011 4:08 AM, Baptiste Lepilleur wrote:
Is there a way to mark string literals so that 2to3 automatically
prefixes them with 'b'? Is there a simpler trick?
Python 2.7.1 (r271:86832, Nov 27 2010, 18:30:46) [MSC v.1500 32 bit
(Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> b=b'abc'
>>> b
'abc'
The b prefix does nothing in 2.7. It was specifically added for this
type of porting problem.
--
Terry Jan Reedy
--
http://mail.python.org/mailman/listinfo/python-list