Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #18543

Re: help me get excited about python 3

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!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.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'backwards': 0.07; 'bits': 0.07; 'python': 0.08; '>>>>': 0.09; 'false,': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:80.91.229.12': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:lo.gmane.org': 0.09; 'types:': 0.09; 'subject:python': 0.10; 'am,': 0.12; '"1"': 0.16; '(django,': 0.16; 'driscoll': 0.16; 'str()': 0.16; 'syntaxerror:': 0.16; 'wrote:': 0.18; '2.x': 0.18; '3.2': 0.18; '(most': 0.21; 'subject:help': 0.21; 'maybe': 0.21; 'header:In-Reply-To:1': 0.22; 'somehow': 0.23; 'keyword': 0.24; 'traceback': 0.24; 'saying': 0.26; 'language.': 0.28; 'sean': 0.29; 'true,': 0.29; 'pm,': 0.29; 'python3': 0.30; 'typeerror:': 0.30; 'about.': 0.32; 'break': 0.32; 'header:User-Agent:1': 0.33; 'header:X-Complaints-To:1': 0.33; 'to:addr:python-list': 0.34; 'too': 0.34; 'things': 0.34; 'assignment': 0.34; 'convince': 0.34; 'last):': 0.34; 'something': 0.35; 'file': 0.36; 'received:au': 0.36; 'but': 0.37; 'exciting': 0.37; 'think': 0.37; 'could': 0.37; 'enough': 0.38; 'received:org': 0.38; 'should': 0.39; 'else': 0.39; "it's": 0.40; 'to:addr:python.org': 0.40; 'world': 0.62; 'needing': 0.68; 'concept': 0.74; 'you:': 0.82; '2.7.1': 0.84; 'on?': 0.84; 'received:110': 0.95
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Lie Ryan <lie.1296@gmail.com>
Subject Re: help me get excited about python 3
Date Thu, 05 Jan 2012 19:51:28 +1100
References <CAOFf2a3ZhAxz=sgchG0KRagEQ68rZP1N2o9=EfbHJZZFg5q7Yw@mail.gmail.com> <4F0529F2.8070900@wisc.edu>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host 110-175-240-90.static.tpgi.com.au
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111124 Thunderbird/8.0
In-Reply-To <4F0529F2.8070900@wisc.edu>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://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 <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.4446.1325753508.27778.python-list@python.org> (permalink)
Lines 42
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1325753508 news.xs4all.nl 6844 [2001:888:2000:d::a6]:56709
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:18543

Show key headers only | View raw


On 01/05/2012 03:41 PM, Evan Driscoll wrote:
> On 1/4/2012 9:56 AM, Sean Wolfe wrote:
>> I am still living in the 2.x world because all the things I want to do
>> right now in python are in 2 (django, pygame). But I want to be
>> excited about the future of the language. I understand the concept of
>> needing to break backwards compatibility. But it's not particularly
>> exciting to think about. What are the cool new bits I should be
>> reading up on?
> This should be enough to convince you:
>
> ~ : python
> Python 2.7.1 (r271:86832, May  3 2011, 10:31:28)
>>>> 1<  "1"
> True
>
> ~ : python3
> Python 3.2 (r32:88445, May  3 2011, 13:26:55)
>>>> 1<  "1"
> Traceback (most recent call last):
>    File "<stdin>", line 1, in<module>
> TypeError: unorderable types: int()<  str()
>
> Maybe with Python 4, '1<  True' will give a TypeError too ;-).
>
>
> Or if that's not enough,
>
> ~ : python
> Python 2.7.1 (r271:86832, May  3 2011, 10:31:28)
>>>> True, False = False, True
>>>> "True is " + ("True" if True else "False")
> 'True is False'
>
> ~ : python3
> Python 3.2 (r32:88445, May  3 2011, 13:26:55)
>>>> True, False = False, True
>    File "<stdin>", line 1
> SyntaxError: assignment to keyword

Somehow I could hear Sean saying something like: "Yeah... and so?"

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: help me get excited about python 3 Lie Ryan <lie.1296@gmail.com> - 2012-01-05 19:51 +1100

csiph-web