Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #97464
| Path | csiph.com!news.mixmin.net!proxad.net!feeder1-2.proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!nzpost1.xs4all.net!not-for-mail |
|---|---|
| Return-Path | <python-python-list@m.gmane.org> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.012 |
| X-Spam-Evidence | '*H*': 0.98; '*S*': 0.00; 'subject:Python': 0.05; 'mertz': 0.05; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.10; ':-)': 0.12; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'slave': 0.16; 'subject:Unicode': 0.16; 'wrote:': 0.16; 'bytes': 0.18; 'module,': 0.18; 'arguments': 0.22; 'am,': 0.23; 'header:User-Agent:1': 0.26; "doesn't": 0.26; 'header:X-Complaints-To:1': 0.26; 'bugs': 0.27; 'transition': 0.27; 'convince': 0.29; 'once.': 0.29; "i'm": 0.30; 'board': 0.30; 'that.': 0.30; 'fixed': 0.31; 'problem': 0.33; 'throughout': 0.34; 'text': 0.35; 'unicode': 0.35; 'should': 0.36; 'instead': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'doing': 0.38; 'to:addr:python.org': 0.40; 'address': 0.61; 'default': 0.61; 'numerous': 0.66; 'skip:\xe2 10': 0.70; 'subjectcharset:utf-8': 0.71; '8bit%:43': 0.72; '21st': 0.76; '_o__)': 0.84; 'century': 0.84; 'pursuit': 0.84; 'received:125': 0.84 |
| X-Injected-Via-Gmane | http://gmane.org/ |
| To | python-list@python.org |
| From | Ben Finney <ben+python@benfinney.id.au> |
| Subject | Re: Python 2 ‘print’, coercing arguments to Unicode |
| Date | Wed, 07 Oct 2015 10:24:23 +1100 |
| References | <851td81g08.fsf@benfinney.id.au> <85wpv0z368.fsf@benfinney.id.au> <mv1k7q$rnl$1@ger.gmane.org> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Transfer-Encoding | 8bit |
| X-Gmane-NNTP-Posting-Host | jigong.madmonks.org |
| X-Public-Key-ID | 0xAC128405 |
| X-Public-Key-Fingerprint | 517C F14B B2F3 98B0 CB35 4855 B8B2 4C06 AC12 8405 |
| X-Public-Key-URL | http://www.benfinney.id.au/contact/bfinney-pubkey.asc |
| X-Post-From | Ben Finney <bignose+hates-spam@benfinney.id.au> |
| User-Agent | Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) |
| Cancel-Lock | sha1:33QyiKr0LJT4yRroSCS9eLEbelU= |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.20+ |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.440.1444173909.28679.python-list@python.org> (permalink) |
| Lines | 21 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1444173909 news.xs4all.nl 23744 [2001:888:2000:d::a6]:55480 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:97464 |
Show key headers only | 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
Re: Python 2 ‘print’, coercing arguments to Unicode Ben Finney <ben+python@benfinney.id.au> - 2015-10-07 10:24 +1100
csiph-web