Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #62959
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| Subject | Re: Python 2.x and 3.x usage survey |
| Date | 2014-01-01 12:44 +0000 |
| References | <mailman.4731.1388440598.18130.python-list@python.org> <hqr7c9dce9krvt7rm49ujptl4dl9mr68gl@4ax.com> <52c3fe0b$0$29984$c3e8da3$5496439d@news.astraweb.com> <th28c95ouhqmicaerkor4sf1l9vv4gv4ub@4ax.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.4778.1388580303.18130.python-list@python.org> (permalink) |
On 01/01/2014 12:38, Steve Hayes wrote:
> On Wed, 01 Jan 2014 22:37:45 +1100, Steven D'Aprano
> <steve+comp.lang.python@pearwood.info> 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 "<stdin>", 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
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Python 2.x and 3.x usage survey Dan Stromberg <drsalists@gmail.com> - 2013-12-30 13:56 -0800
Re: Python 2.x and 3.x usage survey Steve Hayes <hayesstw@telkomsa.net> - 2014-01-01 12:41 +0200
Re: Python 2.x and 3.x usage survey Chris Angelico <rosuav@gmail.com> - 2014-01-01 21:52 +1100
Re: Python 2.x and 3.x usage survey Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-01-01 22:37 +1100
Re: Python 2.x and 3.x usage survey Steve Hayes <hayesstw@telkomsa.net> - 2014-01-01 14:38 +0200
Re: Python 2.x and 3.x usage survey Chris Angelico <rosuav@gmail.com> - 2014-01-01 23:39 +1100
Re: Python 2.x and 3.x usage survey Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-01-01 12:44 +0000
Re: Python 2.x and 3.x usage survey David <bouncingcats@gmail.com> - 2014-01-02 01:07 +1100
Re: Python 2.x and 3.x usage survey Steve Hayes <hayesstw@telkomsa.net> - 2014-01-01 19:55 +0200
Re: Python 2.x and 3.x usage survey Dave Angel <davea@davea.name> - 2014-01-01 09:32 -0500
Re: Python 2.x and 3.x usage survey Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2014-01-01 12:54 -0500
Re: Python 2.x and 3.x usage survey John Ladasky <john_ladasky@sbcglobal.net> - 2014-01-10 09:36 -0800
Re: Python 2.x and 3.x usage survey Ned Batchelder <ned@nedbatchelder.com> - 2014-01-10 12:48 -0500
Re: Python 2.x and 3.x usage survey John Ladasky <john_ladasky@sbcglobal.net> - 2014-01-10 11:43 -0800
Re: Python 2.x and 3.x usage survey MRAB <python@mrabarnett.plus.com> - 2014-01-10 19:53 +0000
Re: Python 2.x and 3.x usage survey Ned Batchelder <ned@nedbatchelder.com> - 2014-01-10 14:50 -0500
Re: Python 2.x and 3.x usage survey Ethan Furman <ethan@stoneleaf.us> - 2014-01-10 10:02 -0800
csiph-web