Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed2.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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'programmer': 0.03; 'from:addr:yahoo.co.uk': 0.04; 'subject:Python': 0.06; 'failing': 0.07; 'versions.': 0.07; 'steve': 0.09; 'lawrence': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.11; 'jan': 0.12; 'language.': 0.14; 'windows': 0.15; '"hello': 0.16; '12:38,': 0.16; 'brackets': 0.16; 'hayes': 0.16; 'hits': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'stupid,': 0.16; 'subject:usage': 0.16; 'url:tutor': 0.16; 'world!")': 0.16; 'language': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'module': 0.19; 'typing': 0.19; 'work,': 0.20; 'seems': 0.21; '>>>': 0.22; 'print': 0.22; 'header:User-Agent:1': 0.23; 'error': 0.23; 'certainly': 0.24; 'this:': 0.26; 'header:X-Complaints- To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'point': 0.28; "doesn't": 0.30; 'dos': 0.30; 'url:mailman': 0.30; 'easier': 0.31; '"",': 0.31; '>>>>': 0.31; "d'aprano": 0.31; 'python"': 0.31; 'steven': 0.31; 'file': 0.32; 'worked': 0.33; 'url:python': 0.33; 'problem': 0.35; 'problem.': 0.35; 'something': 0.35; 'but': 0.35; 'version': 0.36; 'done': 0.36; 'url:listinfo': 0.36; 'url:org': 0.36; 'list': 0.37; 'being': 0.38; 'to:addr:python-list': 0.38; 'previous': 0.38; 'to:addr:python.org': 0.39; 'enough': 0.39; 'mailing': 0.39; 'received:org': 0.40; 'called': 0.40; 'url:mail': 0.40; 'even': 0.60; 'skip:* 10': 0.61; "you'll": 0.62; 'our': 0.64; 'more': 0.64; 'different': 0.65; 'world': 0.66; 'here': 0.66; 'biggest': 0.67; 'brain': 0.68; 'prompt': 0.68; 'hey,': 0.75; 'subject:survey': 0.84; 'world!"': 0.84; 'received:89': 0.85; 'task,': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: Python 2.x and 3.x usage survey Date: Wed, 01 Jan 2014 12:44:42 +0000 References: <52c3fe0b$0$29984$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: host-89-240-170-45.as13285.net User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 In-Reply-To: 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: 55 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1388580303 news.xs4all.nl 2958 [2001:888:2000:d::a6]:33206 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:62959 On 01/01/2014 12:38, Steve Hayes wrote: > On Wed, 01 Jan 2014 22:37:45 +1100, Steven D'Aprano > wrote: > >> Steve Hayes wrote: >> >>> I borrowed a book called "Learning Python" by Lutz and Asher, which is >>> geared for 2.2/2.3. >>> >>> But the version I have in Windows is 3.2, and it seems that even "Hello >>> World" presents and insurmountable problem. >> >> It certainly is not *insurmountable*. Not unless you consider typing >> brackets ( ) to be an inhumanly difficult task, in which case you might as >> well give up on being a programmer and take up something easier like brain >> surgery. >> >> # Python 2 version >> print "Hello World!" >> >> # Python 3 version >> print("Hello World!") > > I was thinking or of this: > >>>> python g:\work\module1.py > File "", line 1 > python g:\work\module1.py > ^ > > Which gave a different error the previous time I did it. > > But, hey, it worked from the DOS prompt > > C:\Python32>python g:\work\module1.py > Hello Module World > > But hey, don't mind me. > > The biggest problem I have is that when something doesn't work, I don't know > if I have done something stupid, or if it's just an incompatibility of the > different versions. > Almost inevitably if you search for the last line of the error that you get you'll find more than enough hits to point you in the right direction. Failing that ask here as we don't bite. There's also the tutor mailing list https://mail.python.org/mailman/listinfo/tutor -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence