Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #91315
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!news2.arglkargh.de!news.swapon.de!news.panservice.it!feed.xsnews.nl!border01.ams.xsnews.nl!feeder04.ams.xsnews.nl!abp002.ams.xsnews.nl!frontend-F10-19.ams.news.kpn.nl |
|---|---|
| From | Cecil Westerhof <Cecil@decebal.nl> |
| Newsgroups | comp.lang.python |
| Subject | Re: SyntaxError on progress module |
| Organization | Decebal Computing |
| References | <csjitvF6cptU1@mid.individual.net> <mailman.58.1432655950.5151.python-list@python.org> <csla4lFjduaU2@mid.individual.net> <87y4kammxa.fsf@Equus.decebal.nl> <mailman.90.1432734279.5151.python-list@python.org> <87siaim7p0.fsf@Equus.decebal.nl> <mailman.91.1432738329.5151.python-list@python.org> |
| X-Face | "(y8cC@tg_12{">GF'UXTW]FHI2wMiZNrnf'1EFQ&O#$m:f#O7+7}kR<J%a^F2lh4[N~Yz4 nSp#c+aQo1b5=?HcNEkQ7QzF<])O3X4MDL/AYjys&*mt>,v+Pti8=Vi/Z"g^?b"E |
| X-Homepage | http://www.decebal.nl/ |
| Date | Wed, 27 May 2015 17:18:48 +0200 |
| Message-ID | <87oal6m4kn.fsf@Equus.decebal.nl> (permalink) |
| User-Agent | Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
| Cancel-Lock | sha1:HVyXqDoNCGyRAKmuO1ctFykME9w= |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Transfer-Encoding | 8bit |
| Lines | 53 |
| NNTP-Posting-Host | 81.207.62.244 |
| X-Trace | 1432740560 news.kpn.nl 21087 81.207.62.244@kpn/81.207.62.244:43781 |
| Xref | csiph.com comp.lang.python:91315 |
Show key headers only | View raw
Op Wednesday 27 May 2015 16:51 CEST schreef Mark Lawrence: > On 27/05/2015 15:11, Cecil Westerhof wrote: >> Op Wednesday 27 May 2015 15:44 CEST schreef Mark Lawrence: >> >>> On 27/05/2015 09:42, Cecil Westerhof wrote: >>>> Op Wednesday 27 May 2015 09:30 CEST schreef alb: >>>> >>>>> But here I have another question, as a python novice is there >>>>> really any reason for me to use any particular version of >>>>> Python? >>>>> >>>>> Should I start directly with the newest? What about 2.7? >>>> >>>> In principal you should use the ‘latest’ 3. The only problem is >>>> that a lot of libraries are not converted to 3 yet. If you need >>>> one of those, then you have ‘no choice’ and have to use 2.7. But >>>> I would recommend to use ‘from __future__' to make the 2.7 code >>>> as much as possible 3 compliant. >>>> >>> >>> Please define "a lot" whilst bearing in mind green against red >>> here https://python3wos.appspot.com/ >> >> I just started using Python again and the first ‘real’ program I >> wrote I had to write with Python 2 because the needed library >> (libturpial, that is not listed on your link) works only with >> Python 2. A short search about which of the two to use gives >> similar answers to mine. And as far as I can see in my >> neighbourhood Python 2 is almost exclusively used because used >> libraries are only available in Python 2. >> >> This is not a scientifically substantiated argument, but for me >> good enough to use a lot. >> > > Have you actaully tried running libturpial with Python 3 or have you > simply taken somebody or something's word for it? I've taken code in > the past that was "only Python 2", run it thought the 2to3 fixer and > job done. Perhaps you could do the same. Perhaps you've already > tried. Again, you're the only person who actually knows. Of-course I tried: that is why I used “had to”. The library itself and libraries it depends on are only existing in a 2 version (at the moment). I write code that should work in 2 and 3 both as long as 2 is still a significant part. I call programs with python3 (even while it is 10 to 20 percent slower) and only when that is not possible I use Python 2. (Except to test if code also works with Python 2.) -- Cecil Westerhof Senior Software Engineer LinkedIn: http://www.linkedin.com/in/cecilwesterhof
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
SyntaxError on progress module al.basili@gmail.com (alb) - 2015-05-26 15:48 +0000
Re: SyntaxError on progress module Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-05-26 16:59 +0100
Re: SyntaxError on progress module al.basili@gmail.com (alb) - 2015-05-27 07:30 +0000
Re: SyntaxError on progress module David Palao <dpalao.python@gmail.com> - 2015-05-27 09:47 +0200
Re: SyntaxError on progress module Chris Angelico <rosuav@gmail.com> - 2015-05-27 18:22 +1000
Re: SyntaxError on progress module Cecil Westerhof <Cecil@decebal.nl> - 2015-05-27 10:42 +0200
Re: SyntaxError on progress module Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-05-27 14:44 +0100
Re: SyntaxError on progress module Cecil Westerhof <Cecil@decebal.nl> - 2015-05-27 16:11 +0200
Re: SyntaxError on progress module Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-05-27 15:51 +0100
Re: SyntaxError on progress module Cecil Westerhof <Cecil@decebal.nl> - 2015-05-27 17:18 +0200
Re: SyntaxError on progress module Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-05-27 21:03 +0100
Re: SyntaxError on progress module Steven D'Aprano <steve@pearwood.info> - 2015-05-28 11:39 +1000
Re: SyntaxError on progress module Chris Angelico <rosuav@gmail.com> - 2015-05-27 02:27 +1000
Re: SyntaxError on progress module al.basili@gmail.com (alb) - 2015-05-27 07:24 +0000
csiph-web