Re: Python 2 or 3

2011-12-10 Thread Enrico 'Henryx' Bianchi
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Steven D'Aprano wrote: > RHEL supports Python 3, it just doesn't provide Python 3. True, but as you say later, the only method is to recompile. So, if I want to use Python 3 in a production environment like RHEL, I need: - A development environmen

Re: Python 2 or 3

2011-12-09 Thread Steven D'Aprano
On Sat, 10 Dec 2011 00:16:30 +0100, Enrico 'Henryx' Bianchi wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Tobiah wrote: > >> Use the newer version and don't look back. > > Interesting reply, but if I have a platform wich doesn't support Python > 3 (e.g. RHEL 5.x)? ]:) RHEL suppo

Re: Python 2 or 3

2011-12-09 Thread Enrico 'Henryx' Bianchi
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tobiah wrote: > Use the newer version and don't look back. Interesting reply, but if I have a platform wich doesn't support Python 3 (e.g. RHEL 5.x)? ]:) Enrico P.S. note that: I *don't* want to recompile Python in production environment -BEGIN

Re: Python 2 or 3

2011-12-06 Thread Tobiah
What is the opinion of the wizards here, shall I learm Python 2 or Python 3? I'm posting this here because I feel that this point is interesting to other students of Python. Use the newer version and don't look back. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2 or 3

2011-12-04 Thread Zaphod
On Sat, 03 Dec 2011 05:54:19 +0200, Antti J Ylikoski wrote: > I'm in the process of learning Python. I already can code > objet-oriented programs with the language. I have in my hands the > O'Reilly book by Mark Lutz, Programming Python, in two versions: the 2nd > Edition, which covers Python 2,

Re: Python 2 or 3

2011-12-03 Thread Chris Angelico
On Sun, Dec 4, 2011 at 1:52 PM, Terry Reedy wrote: > For anyone working with unicode instead of ascii... Which, frankly, should be everyone. You can't get away with assuming that a character is a byte any more; even if you stick to the US, you're going to run into some non-ASCII symbols sooner or

Re: Python 2 or 3

2011-12-03 Thread Terry Reedy
On 12/3/2011 3:59 PM, Gelonida N wrote: I would still stick with python 2. In my opinion there is no reason to rush to the most recent version. Python 3 is 3 years old. Starting with it now is hardly rushing. There are several reasons someone 'in the process of learning Python' might want to

Re: Python 2 or 3

2011-12-03 Thread Chris Angelico
On Sun, Dec 4, 2011 at 7:59 AM, Gelonida N wrote: > if you write code nicely enough in python 2, then you can translate it >  to python 3. autmatically. It's entirely possible to write code that can run on both Python 2 and Python 3 - at least, if you can target 2.6/2.7 and get the appropriate f

Re: Python 2 or 3

2011-12-03 Thread Gelonida N
On 12/03/2011 04:54 AM, Antti J Ylikoski wrote: > > I'm in the process of learning Python. I already can code > objet-oriented programs with the language. I have in my hands the > O'Reilly book by Mark Lutz, Programming Python, in two versions: the > 2nd Edition, which covers Python 2, and the 4

Re: Python 2 or 3

2011-12-03 Thread Arnaud Delobelle
On 3 December 2011 03:54, Antti J Ylikoski wrote: > > I'm in the process of learning Python.  I already can code > objet-oriented programs with the language.  I have in my hands the > O'Reilly book by Mark Lutz, Programming Python, in two versions: the > 2nd Edition, which covers Python 2, and the

Re: Python 2 or 3

2011-12-03 Thread Chris Angelico
On Sat, Dec 3, 2011 at 9:04 PM, Steven D'Aprano wrote: > If you can deal with the difference between these two lines without > getting confused: > > print md5.md5("spam").hexdigest()  # Python 2.x > print(hashlib.md5("spam").hexdigest())  # Python 3.x The second line needs to be: print(hashlib.md

Re: Python 2 or 3

2011-12-03 Thread Steven D'Aprano
On Sat, 03 Dec 2011 05:54:19 +0200, Antti J Ylikoski wrote: > The O'Reilly book has some 1200 pages. I would not want to invest such > an amount of work and time to an obsolete language (i. e. Python 2). Python 2 is not an obsolete language. The differences between Python 2 and Python 3 are min

Re: Python 2 or 3

2011-12-03 Thread jmfauth
On 3 déc, 04:54, Antti J Ylikoski wrote: > Helsinki, Finland, the EU <<< >>> sys.version '2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)]' >>> 'éléphant' '\xe9l\xe9phant' >>> >>> sys.version '3.2.2 (default, Sep 4 2011, 09:51:08) [MSC v.1500 32 bit (Intel)]' >>>

Re: Python 2 or 3

2011-12-02 Thread Matt Joiner
2 without a doubt. On Dec 3, 2011 5:40 PM, "Andrew Berg" wrote: > On 12/3/2011 12:23 AM, Terry Reedy wrote: > > PyPy has a roadmap for 3.2 > > http://pypy.org/py3donate.html > > They definitely plan to do it one way or another. > I never said there were no plans, but at $2567 out of $60k, I don't

Re: Python 2 or 3

2011-12-02 Thread Andrew Berg
I accidentally quoted the wrong figure. I meant $4369 of $105000. -- CPython 3.2.2 | Windows NT 6.1.7601.17640 | Thunderbird 7.0 -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2 or 3

2011-12-02 Thread Andrew Berg
On 12/3/2011 12:23 AM, Terry Reedy wrote: > PyPy has a roadmap for 3.2 > http://pypy.org/py3donate.html > They definitely plan to do it one way or another. I never said there were no plans, but at $2567 out of $60k, I don't see it happening soon. Unless someone decides to donate a huge sum of money

Re: Python 2 or 3

2011-12-02 Thread Terry Reedy
On 12/2/2011 11:20 PM, Andrew Berg wrote: thing to note is that, at least AFAICT, Jython, IronPython and PyPy are not going to support Python 3 any time soon, PyPy has a roadmap for 3.2 http://pypy.org/py3donate.html They definitely plan to do it one way or another. -- Terry Jan Reedy -- htt

Re: Python 2 or 3

2011-12-02 Thread Dan Stromberg
On 12/2/11, Antti J Ylikoski wrote: > > I'm in the process of learning Python. I already can code > objet-oriented programs with the language. I have in my hands the > O'Reilly book by Mark Lutz, Programming Python, in two versions: the > 2nd Edition, which covers Python 2, and the 4th edition,

Re: Python 2 or 3

2011-12-02 Thread Roy Smith
In article , Antti J Ylikoski wrote: > I have in my hands the O'Reilly book by Mark Lutz, Programming > Python, in two versions: the 2nd Edition, which covers Python 2, and > the 4th edition, which covers Python 3. The engineer in me really has to wonder what the 3rd edition might have cover

Re: Python 2 or 3

2011-12-02 Thread Andrew Berg
On 12/2/2011 9:54 PM, Antti J Ylikoski wrote: > What is the opinion of the wizards here, shall I learm Python 2 or > Python 3? I'm posting this here because I feel that this point is > interesting to other students of Python. Unless you are tied to Python 2 in some way, go for Python 3 and don't l

Re: Python 2 or 3

2011-12-02 Thread Gnarlodious
If you are writing your own scripts, I would recommend Py3 for learning. But if you are studying existing scripts to learn, Py2 might be better. I have been doing Python for about 2 years and started learning Py3 with no regrets. Py2 is not going to be "obsolete" for quite a while. It is almost

Re: Python 2 or 3 ? with Django , My SQL and YUI

2011-02-22 Thread Dhaivat Pandya
On Feb 21, 11:01 pm, Sumit wrote: > Python 2 or 3 ? with Django , My SQL and YUI > > For a web project We have decided to work on Python 2 or 3 ? with > Django , My SQL and YUI, and this would be the first time to work with > Python, just now I explored a little and found Python -2 vs 3 Stuff , >