Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!217.188.199.168.MISMATCH!takemy.news.telefonica.de!telefonica.de!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'filenames': 0.07; 'received:internal': 0.09; 'stringio': 0.09; 'python': 0.11; 'wed,': 0.15; 'user.': 0.15; 'anatoly': 0.16; 'message- id:@webmail.messagingengine.com': 0.16; 'received:10.202': 0.16; 'received:10.202.2': 0.16; 'received:66.111': 0.16; 'received:66.111.4': 0.16; 'received:messagingengine.com': 0.16; 'subject:unicode': 0.16; 'wrote:': 0.16; 'to:2**1': 0.22; 'header :In-Reply-To:1': 0.24; 'equivalent': 0.27; "doesn't": 0.28; 'probably': 0.32; 'point': 0.33; 'to:addr:python-list': 0.35; 'received:10': 0.37; 'display': 0.37; 'subject:: ': 0.37; 'received:66': 0.38; 'to:addr:python.org': 0.39; 'subject: (': 0.40; 'from:no real name:2**0': 0.61; 'header:Message-Id:1': 0.62 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.us; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=QaeQCCIjVyP1rhFLm4lO0Ncu4S8=; b=m09oGA EFQt2X80vfwjb0cSOQ+NNOqCdy82AQ7S2X7/tJL/OgSJKmhLGnalSS7fxah90IN5 SbEC7+w/6bmjcmZ25DHPxuiSNNNLf2P6qIxmljNgnqZ3xeFD/XxTxd+SKdDUUwJM W+GdleEyusQpcHdMWUvnq3HCm2DW4MBbjZ9nA= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=QaeQCCIjVyP1rhF Lm4lO0Ncu4S8=; b=pj1K7OHtkdr1sxxNst3UclazqUod0iK2vByh2gyIR0j/3O8 d7b6t8FITbiPtVCpS++faLaRpM+fdsR8CSPrF8/7yB13EhwqhcCYXmM1lIcZIrkj jNQecu+9PHKPxGVv9d5cIiIDhhJmBw2pBpKlEFMCUe/lzTno/3bHL85pK8Mg= X-Sasl-Enc: bfxINtfryveNXqGSbAd/rE7wgmEJWTQckV4IBDFAp1vw 1432730941 From: random832@fastmail.us To: python-list@python.org, anatoly techtonik MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Mailer: MessagingEngine.com Webmail Interface - ajax-073992ec Subject: Re: Fwd: Lossless bulletproof conversion to unicode (backslashing) Date: Wed, 27 May 2015 08:49:01 -0400 In-Reply-To: References: <201505271135.t4RBZY6F013836@fido.openend.se> 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: 6 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1432730943 news.xs4all.nl 2897 [2001:888:2000:d::a6]:32831 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:91304 On Wed, May 27, 2015, at 07:47, anatoly techtonik wrote: > because Python 3 doesn't have non-unicode StringIO That's actually not true - the non-unicode equivalent is BytesIO. However, it's probably not actually what you want, if the point is to display the filenames to the user.