Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #97464

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

From Ben Finney <ben+python@benfinney.id.au>
Subject Re: Python 2 ‘print’, coercing arguments to Unicode
Date 2015-10-07 10:24 +1100
References <851td81g08.fsf@benfinney.id.au> <85wpv0z368.fsf@benfinney.id.au> <mv1k7q$rnl$1@ger.gmane.org>
Newsgroups comp.lang.python
Message-ID <mailman.440.1444173909.28679.python-list@python.org> (permalink)

Show all headers | View raw


Terry Reedy <tjreedy@udel.edu> writes:

> On 10/6/2015 6:45 AM, Ben Finney wrote:
> > Ben Finney <ben+python@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.

This is all part of a transition to Python 3, so I am fully on board
with that. It doesn't help address the problem to tell me I want to do
what I'm already in pursuit of doing :-)

-- 
 \        “Intellectual property is to the 21st century what the slave |
  `\                              trade was to the 16th.” —David Mertz |
_o__)                                                                  |
Ben Finney

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Python 2 ‘print’, coercing arguments to Unicode Ben Finney <ben+python@benfinney.id.au> - 2015-10-07 10:24 +1100

csiph-web