Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.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.010 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'true)': 0.07; 'versions.': 0.07; 'assumed': 0.09; "b''": 0.09; 'porting': 0.09; 'eckhardt': 0.16; 'portably': 0.16; 'rationale': 0.16; 'subject:unicode': 0.16; 'string': 0.17; 'wrote:': 0.17; 'alex': 0.17; 'byte': 0.17; 'unicode': 0.17; 'feature': 0.24; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; '(which': 0.26; 'wonder': 0.27; 'code': 0.31; 'could': 0.32; 'to:addr:python-list': 0.33; 'thanks': 0.34; 'pm,': 0.35; 'received:co.za': 0.37; 'received:za': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'help': 0.40; 'is.': 0.62; 'between': 0.63; 'legal': 0.65; 'surprise': 0.65; 'received:41': 0.73; 'received:196.28': 0.84 Date: Mon, 15 Oct 2012 15:41:40 +0200 From: Alex Strickland User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 MIME-Version: 1.0 To: python-list@python.org Subject: Re: portable unicode literals References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 15 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1350308926 news.xs4all.nl 6844 [2001:888:2000:d::a6]:48404 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:31303 On 2012/10/15 03:05 PM, Ulrich Eckhardt wrote: > This actually came as a surprise to me, I assumed that using b'' I could > portably create a byte string (which is true) and using u'' I could > portably create a unicode string (which is not true). This feature would > help porting code between both versions. While this is a state I can > live with, I wonder what the rationale for this is. > > !puzzled thanks u'' is legal in 3.3 again. -- Regards Alex