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


Groups > comp.lang.python > #97456 > unrolled thread

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

Started byBen Finney <ben+python@benfinney.id.au>
First post2015-10-07 08:23 +1100
Last post2015-10-07 08:23 +1100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

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

FromBen Finney <ben+python@benfinney.id.au>
Date2015-10-07 08:23 +1100
SubjectRe: Python 2 ‘print’, coercing arguments to Unicode
Message-ID<mailman.434.1444166612.28679.python-list@python.org>
Laura Creighton <lac@openend.se> writes:

> Hmm, now that I read the six document again
>  @six.python_2_unicode_compatible


Peter Otten <__peter__@web.de> writes:

> I don't think this is possible with the print statement, but the
> print() function can be replaced with anything you like:


Hmm. I am more looking for something that doesn't involve replacing
‘print’, but rather to hook into whatever it uses to coerce the type of
its arguments.

-- 
 \        “The problem with television is that the people must sit and |
  `\    keep their eyes glued on a screen: the average American family |
_o__)                 hasn't time for it.” —_The New York Times_, 1939 |
Ben Finney

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web