Re: Python 2 ‘print’, coercing arguments to Unicode

Terry Reedy tjreedy at udel.edu
Tue Oct 6 19:07:24 EDT 2015


On 10/6/2015 6:45 AM, Ben Finney wrote:
> Ben Finney <ben+python at benfinney.id.au> writes:

> How can I convince ‘print’, everywhere throughout a module, that it
> should coerce its arguments using ‘unicode’?

Use Python 3.  I am only half joking.  Switching to unicode  instead of 
bytes as the default text type fixed numerous bugs all at once.

-- 
Terry Jan Reedy





More information about the Python-list mailing list