which version of python?

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

which version of python?

Maurice Vergeer
Dear all,

I'm thinking of getting into Python.
The think is, I understand that SPSS now is compatible with Python
2.5, whereas the latest version of Python is 3.1.2.
Although I don't need the latest of the latest, I do understand that
from Python 3 onward it differs quite considerably for the pre-Python
3 versions.
My question is, is it worthwhile to start learning Python 2.5 or more
sensible to wait until SPSS is compatible with Python 3.x?

Thanks
Maurice


--
___________________________________________________________________
Maurice Vergeer
Department of communication
Radboud University�  (www.ru.nl)
PO Box 9104
NL-6500 HE Nijmegen
The Netherlands

Visiting Professor Yeungnam University, Gyeongsan, South Korea

contact:
E: [hidden email]
T: +31 24 3612297 (direct)/ 3612372 (secretary) / maurice.vergeer (skype)
personal webpage: www.mauricevergeer.nl
blog:�  http://blog.mauricevergeer.nl/
Journalism: www.journalisteninhetdigitaletijdperk.nl
CENMEP New Media and European Parliament Elections 2009
http://mauricevergeer.ruhosting.nl/cenmep

Recent publications:
- Vergeer, M. & Pelzer, B. (2009). Consequences of media and Internet
use for offline and online network capital and well-being. A causal
model approach. Journal of Computer-Mediated Communication, 15,
189-210.
-Vergeer, M., Coenders, M. & Scheepers, P. (2009). Time spent on
television in European countries. In R.P. Konig, P.W.M. Nelissen, &
F.J.M. Huysmans (Eds.), Meaningful media: Communication Research on
the Social Construction of Reality (54-73). Nijmegen, The Netherlands:
Tandem Felix.
- Hermans, L., Vergeer, M., &�  d’Haenens, L. (2009). Internet in the
daily life of journalists. Explaining the use of the Internet through
work-related characteristics and professional opinions. Journal of
Computer-Mediated Communication, 15, 138-157.
___________________________________________________________________

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
Reply | Threaded
Open this post in threaded view
|

AW: which version of python?

Georg Maubach-2
Hi Maurice,

we work with Python since the very beginning in SPSS 14. SPSS 17 is shipped with Python 2.5 and SPSS 18 with Python 2.6.

As far as I know the differences are significant but you can switch easily if you know a previous version. As SPSS is shipped with Python 2.x I would suggest you start with that.

On the other hand you could ask SPSS directly which Python version they will ship with their newest Release SPSS 19 which will be available later this year. If this is Python 3.x then I would go with Python 3.x. If not, I would go with Python 2.x.

HTH

Regards

George


-----Ursprüngliche Nachricht-----
Von: SPSSX(r) Discussion [mailto:[hidden email]] Im Auftrag von Maurice Vergeer
Gesendet: Freitag, 6. August 2010 17:49
An: [hidden email]
Betreff: which version of python?

Dear all,

I'm thinking of getting into Python.
The think is, I understand that SPSS now is compatible with Python 2.5, whereas the latest version of Python is 3.1.2.
Although I don't need the latest of the latest, I do understand that from Python 3 onward it differs quite considerably for the pre-Python
3 versions.
My question is, is it worthwhile to start learning Python 2.5 or more sensible to wait until SPSS is compatible with Python 3.x?

Thanks
Maurice


--
___________________________________________________________________
Maurice Vergeer
Department of communication
Radboud University  (www.ru.nl)
PO Box 9104
NL-6500 HE Nijmegen
The Netherlands

Visiting Professor Yeungnam University, Gyeongsan, South Korea

contact:
E: [hidden email]
T: +31 24 3612297 (direct)/ 3612372 (secretary) / maurice.vergeer (skype) personal webpage: www.mauricevergeer.nl
blog:  http://blog.mauricevergeer.nl/
Journalism: www.journalisteninhetdigitaletijdperk.nl
CENMEP New Media and European Parliament Elections 2009 http://mauricevergeer.ruhosting.nl/cenmep

Recent publications:
- Vergeer, M. & Pelzer, B. (2009). Consequences of media and Internet use for offline and online network capital and well-being. A causal model approach. Journal of Computer-Mediated Communication, 15, 189-210.
-Vergeer, M., Coenders, M. & Scheepers, P. (2009). Time spent on television in European countries. In R.P. Konig, P.W.M. Nelissen, & F.J.M. Huysmans (Eds.), Meaningful media: Communication Research on the Social Construction of Reality (54-73). Nijmegen, The Netherlands:
Tandem Felix.
- Hermans, L., Vergeer, M., &  d'Haenens, L. (2009). Internet in the daily life of journalists. Explaining the use of the Internet through work-related characteristics and professional opinions. Journal of Computer-Mediated Communication, 15, 138-157.
___________________________________________________________________

=====================
To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
Reply | Threaded
Open this post in threaded view
|

Re: which version of python?

J. R. Carroll
In reply to this post by Maurice Vergeer
Maurice,

One of the greatest founding principles of Python is that it is consistent/predictable.  Yes, Python 3.x is crossing some new ground (I haven't looked much into it, but from what I have reviewed it is a step ahead of 2.x).  I would recommend you start learning Python 2.x now - what you learn in 2.5/2.6 won't dramatically be different from Python 3.x; the designers/implementers of Python follow a stringent mission statement: "never get in the way of the programmer", and significantly changing the language (as you hint) in its transition from ver2.x - ver3.x would be detrimental to the Python community (aka - they would never never do it).  Also, if you are not familiar with languages like Python you need to learn the fundamentals (so start now!) - Python is very user friendly; the transitioning phase from 2.x to 3.x should not be so stark that you would be learning Python all over again.

Feel free to bug me about any 'newb' Python questions.

Best of luck,

J. R. Carroll
Grad. Student in Pre-Doc Psychology at CSUS
Research Assistant for Just About Everyone.
Email:  [hidden email]   -or-   [hidden email]
Phone:  (916) 628-4204


On Fri, Aug 6, 2010 at 8:49 AM, Maurice Vergeer <[hidden email]> wrote:
Dear all,

I'm thinking of getting into Python.
The think is, I understand that SPSS now is compatible with Python
2.5, whereas the latest version of Python is 3.1.2.
Although I don't need the latest of the latest, I do understand that
from Python 3 onward it differs quite considerably for the pre-Python
3 versions.
My question is, is it worthwhile to start learning Python 2.5 or more
sensible to wait until SPSS is compatible with Python 3.x?

Thanks
Maurice


--
___________________________________________________________________
Maurice Vergeer
Department of communication
Radboud University  (www.ru.nl)
PO Box 9104
NL-6500 HE Nijmegen
The Netherlands

Visiting Professor Yeungnam University, Gyeongsan, South Korea

contact:
E: [hidden email]
T: +31 24 3612297 (direct)/ 3612372 (secretary) / maurice.vergeer (skype)
personal webpage: www.mauricevergeer.nl
blog:Â  http://blog.mauricevergeer.nl/
Journalism: www.journalisteninhetdigitaletijdperk.nl
CENMEP New Media and European Parliament Elections 2009
http://mauricevergeer.ruhosting.nl/cenmep

Recent publications:
- Vergeer, M. & Pelzer, B. (2009). Consequences of media and Internet
use for offline and online network capital and well-being. A causal
model approach. Journal of Computer-Mediated Communication, 15,
189-210.
-Vergeer, M., Coenders, M. & Scheepers, P. (2009). Time spent on
television in European countries. In R.P. Konig, P.W.M. Nelissen, &
F.J.M. Huysmans (Eds.), Meaningful media: Communication Research on
the Social Construction of Reality (54-73). Nijmegen, The Netherlands:
Tandem Felix.
- Hermans, L., Vergeer, M., &Â  d’Haenens, L. (2009). Internet in the
daily life of journalists. Explaining the use of the Internet through
work-related characteristics and professional opinions. Journal of
Computer-Mediated Communication, 15, 138-157.
___________________________________________________________________

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD

Reply | Threaded
Open this post in threaded view
|

Re: which version of python?

Jon K Peck
In reply to this post by Maurice Vergeer

Each SPSS Statistics release is tied to a particular version of Python - 2.6 for 18 and 19.  The Python 3.x series is still pretty new and has not been widely adopted for real uses.  I would guess that that point is still 2+ years away.  That's a long time to wait.  

If you learn 2.x, there will be some things to relearn when 3.x is adopted, but most of your knowledge will transfer.  And there is a 2-to-3 tool that can mostly convert Python code from one to the other.  With 2.7 you can actually start using 3.x features but stay compatible with the 2.x line.  I wish we could have moved to that for Statistics 19, but 2.7 was released too late for our product cycle.

HTH,
Jon Peck
SPSS, an IBM Company
[hidden email]
312-651-3435



From: Maurice Vergeer <[hidden email]>
To: [hidden email]
Date: 08/06/2010 11:12 AM
Subject: [SPSSX-L] which version of python?
Sent by: "SPSSX(r) Discussion" <[hidden email]>





Dear all,

I'm thinking of getting into Python.
The think is, I understand that SPSS now is compatible with Python
2.5, whereas the latest version of Python is 3.1.2.
Although I don't need the latest of the latest, I do understand that
from Python 3 onward it differs quite considerably for the pre-Python
3 versions.
My question is, is it worthwhile to start learning Python 2.5 or more
sensible to wait until SPSS is compatible with Python 3.x?

Thanks
Maurice


--
___________________________________________________________________
Maurice Vergeer
Department of communication
Radboud University  (
www.ru.nl)
PO Box 9104
NL-6500 HE Nijmegen
The Netherlands

Visiting Professor Yeungnam University, Gyeongsan, South Korea

contact:
E: [hidden email]
T: +31 24 3612297 (direct)/ 3612372 (secretary) / maurice.vergeer (skype)
personal webpage:
www.mauricevergeer.nl
blog:  
http://blog.mauricevergeer.nl/
Journalism:
www.journalisteninhetdigitaletijdperk.nl
CENMEP New Media and European Parliament Elections 2009
http://mauricevergeer.ruhosting.nl/cenmep

Recent publications:
- Vergeer, M. & Pelzer, B. (2009). Consequences of media and Internet
use for offline and online network capital and well-being. A causal
model approach. Journal of Computer-Mediated Communication, 15,
189-210.
-Vergeer, M., Coenders, M. & Scheepers, P. (2009). Time spent on
television in European countries. In R.P. Konig, P.W.M. Nelissen, &
F.J.M. Huysmans (Eds.), Meaningful media: Communication Research on
the Social Construction of Reality (54-73). Nijmegen, The Netherlands:
Tandem Felix.
- Hermans, L., Vergeer, M., &  d’Haenens, L. (2009). Internet in the
daily life of journalists. Explaining the use of the Internet through
work-related characteristics and professional opinions. Journal of
Computer-Mediated Communication, 15, 138-157.
___________________________________________________________________

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD


Reply | Threaded
Open this post in threaded view
|

Re: which version of python?

Maurice Vergeer
Dear Georg, Justin and Jon,

thanks very much for the information and advice. I'll stick to Python 2.x for now.

Best wishes,
Maurice
 

2010/8/6 Jon K Peck <[hidden email]>

Each SPSS Statistics release is tied to a particular version of Python - 2.6 for 18 and 19.  The Python 3.x series is still pretty new and has not been widely adopted for real uses.  I would guess that that point is still 2+ years away.  That's a long time to wait.  

If you learn 2.x, there will be some things to relearn when 3.x is adopted, but most of your knowledge will transfer.  And there is a 2-to-3 tool that can mostly convert Python code from one to the other.  With 2.7 you can actually start using 3.x features but stay compatible with the 2.x line.  I wish we could have moved to that for Statistics 19, but 2.7 was released too late for our product cycle.

HTH,
Jon Peck
SPSS, an IBM Company
[hidden email]
312-651-3435



From: Maurice Vergeer <[hidden email]>
To:
Date: 08/06/2010 11:12 AM
Subject: [SPSSX-L] which version of python?
Sent by: "SPSSX(r) Discussion" <[hidden email]>





Dear all,

I'm thinking of getting into Python.
The think is, I understand that SPSS now is compatible with Python
2.5, whereas the latest version of Python is 3.1.2.
Although I don't need the latest of the latest, I do understand that
from Python 3 onward it differs quite considerably for the pre-Python
3 versions.
My question is, is it worthwhile to start learning Python 2.5 or more
sensible to wait until SPSS is compatible with Python 3.x?

Thanks
Maurice


--
___________________________________________________________________
Maurice Vergeer
Department of communication
Radboud University  (
www.ru.nl)
PO Box 9104
NL-6500 HE Nijmegen
The Netherlands

Visiting Professor Yeungnam University, Gyeongsan, South Korea

contact:
E: [hidden email]
T: +31 24 3612297 (direct)/ 3612372 (secretary) / maurice.vergeer (skype)
personal webpage:
www.mauricevergeer.nl
blog:  
http://blog.mauricevergeer.nl/
Journalism:
www.journalisteninhetdigitaletijdperk.nl
CENMEP New Media and European Parliament Elections 2009
http://mauricevergeer.ruhosting.nl/cenmep


Recent publications:
- Vergeer, M. & Pelzer, B. (2009). Consequences of media and Internet
use for offline and online network capital and well-being. A causal
model approach. Journal of Computer-Mediated Communication, 15,
189-210.
-Vergeer, M., Coenders, M. & Scheepers, P. (2009). Time spent on
television in European countries. In R.P. Konig, P.W.M. Nelissen, &
F.J.M. Huysmans (Eds.), Meaningful media: Communication Research on
the Social Construction of Reality (54-73). Nijmegen, The Netherlands:
Tandem Felix.
- Hermans, L., Vergeer, M., &  d’Haenens, L. (2009). Internet in the
daily life of journalists. Explaining the use of the Internet through
work-related characteristics and professional opinions. Journal of
Computer-Mediated Communication, 15, 138-157.
___________________________________________________________________

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD





--
___________________________________________________________________
Maurice Vergeer
Department of communication
Radboud University  (www.ru.nl)
PO Box 9104
NL-6500 HE Nijmegen
The Netherlands

Visiting Professor Yeungnam University, Gyeongsan, South Korea

contact:
E: [hidden email]
T: +31 24 3612297 (direct)/ 3612372 (secretary) / maurice.vergeer (skype)
personal webpage: www.mauricevergeer.nl
blog:  http://blog.mauricevergeer.nl/
Journalism: www.journalisteninhetdigitaletijdperk.nl
CENMEP New Media and European Parliament Elections 2009 http://mauricevergeer.ruhosting.nl/cenmep

Recent publications:
- Vergeer, M. & Pelzer, B. (2009). Consequences of media and Internet use for offline and online network capital and well-being. A causal model approach. Journal of Computer-Mediated Communication, 15, 189-210.
-Vergeer, M., Coenders, M. & Scheepers, P. (2009). Time spent on television in European countries. In R.P. Konig, P.W.M. Nelissen, & F.J.M. Huysmans (Eds.), Meaningful media: Communication Research on the Social Construction of Reality (54-73). Nijmegen, The Netherlands: Tandem Felix.
- Hermans, L., Vergeer, M., &  d’Haenens, L. (2009). Internet in the daily life of journalists. Explaining the use of the Internet through work-related characteristics and professional opinions. Journal of Computer-Mediated Communication, 15, 138-157.
___________________________________________________________________