Path: csiph.com!news.mixmin.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!nzpost1.xs4all.net!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.006 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:Python': 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; 'jan': 0.11; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'subject:Unicode': 0.16; 'wrote:': 0.16; 'bytes': 0.18; 'module,': 0.18; 'arguments': 0.22; 'am,': 0.23; 'header:In-Reply-To:1': 0.24; 'header:User-Agent:1': 0.26; 'header:X-Complaints-To:1': 0.26; 'bugs': 0.27; 'convince': 0.29; 'once.': 0.29; 'fixed': 0.31; '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; 'to:addr:python.org': 0.40; 'default': 0.61; 'numerous': 0.66; 'skip:\xe2 10': 0.70; 'subjectcharset:utf-8': 0.71; '8bit%:43': 0.72; 'received:fios.verizon.net': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: =?UTF-8?Q?Re:_Python_2_=e2=80=98print=e2=80=99=2c_coercing_argument?= =?UTF-8?Q?s_to_Unicode?= Date: Tue, 6 Oct 2015 19:07:24 -0400 References: <851td81g08.fsf@benfinney.id.au> <85wpv0z368.fsf@benfinney.id.au> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Gmane-NNTP-Posting-Host: pool-173-59-124-74.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 In-Reply-To: <85wpv0z368.fsf@benfinney.id.au> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 14 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1444172868 news.xs4all.nl 23800 [2001:888:2000:d::a6]:47046 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:97461 On 10/6/2015 6:45 AM, Ben Finney wrote: > Ben Finney writes: > How can I convince =E2=80=98print=E2=80=99, everywhere throughout a mod= ule, that it > should coerce its arguments using =E2=80=98unicode=E2=80=99? Use Python 3. I am only half joking. Switching to unicode instead of=20 bytes as the default text type fixed numerous bugs all at once. --=20 Terry Jan Reedy