Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.albasani.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:Python': 0.06; '(python': 0.07; 'versions.': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.11; 'wrote': 0.14; '2.7': 0.14; "b''": 0.16; 'backwards': 0.16; 'behaviour.': 0.16; 'deprecated,': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'skip:n 50': 0.16; 'unlikely': 0.16; 'replace': 0.24; 'versions': 0.24; 'header:X-Complaints-To:1': 0.27; 'code': 0.31; '3.x': 0.31; 'changed.': 0.31; 'probably': 0.32; 'could': 0.34; 'late': 0.35; 'but': 0.35; 'there': 0.35; 'too': 0.37; 'e.g.': 0.38; 'to:addr:python-list': 0.38; "couldn't": 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'break': 0.61; 'new': 0.61; 'frank': 0.68; 'introduce': 0.78; 'replicate': 0.84; 'differences': 0.93 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: "Frank Millman" Subject: Re: Python 3 is killing Python Date: Thu, 17 Jul 2014 07:18:54 +0200 References: <57ajo9poljjre4c4ig0n0ss8kph8k78lp0@4ax.com> <5389cb53$0$29978$c3e8da3$5496439d@news.astraweb.com> <99b7b2a2-7521-42d7-a5a0-1a35d4d5b922@googlegroups.com> <53C4A454.9010600@gmail.com> <87zjga4j4v.fsf@elektro.pacujo.net> <53c57bae$0$9505$c3e8da3$5496439d@news.astraweb.com> <87iomy4ciy.fsf@elektro.pacujo.net> <53c5f6dc$0$9505$c3e8da3$5496439d@news.astraweb.com> <87egxl4zq8.fsf@elektro.pacujo.net> <53c62e7f$0$29897$c3e8da3$5496439d@news.astraweb.com> <871ttlfune.fsf@elektro.pacujo.net> <53c66ba8$0$9505$c3e8da3$5496439d@news.astraweb.com> X-Gmane-NNTP-Posting-Host: 197.87.184.203 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.3790.4657 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.4913 X-RFC2646: Format=Flowed; Original 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: 24 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1405574348 news.xs4all.nl 2974 [2001:888:2000:d::a6]:48318 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:74616 "Steven D'Aprano" wrote in message news:53c66ba8$0$9505$c3e8da3$5496439d@news.astraweb.com... > > E.g. having b"abc"[0] return 97 instead of b"a" was probably a mistake, > but there are four versions of Python 3.x that do it that way and it's > too late to change until Python 5000. (Python 4 is unlikely to break > backwards compatibility in a big way.) > If it was considered important enough, couldn't they just introduce a new datatype, say B'...', with the desired behaviour. B'' would be backported to Python 2.7 as an alternative to b'', to faciliate writing code that works on both versions. There would be a lot of overlap with b'...', but the differences could be documented. Methods could be added to B'' to replicate any behaviour of b'' which has been changed. Then over time b'' could be deprecated, and in Python 4 b'' could replace B''. Frank Millman