maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Can I run python 2.6 on the n900? (https://talk.maemo.org/showthread.php?t=67274)

extendedping 2010-12-21 18:16

Can I run python 2.6 on the n900?
 
Hi I am trying to learn python and wish I could use 2.6 as I hear that is the version stuff going into 3.x is being backported to. I see I have 2.5.4.

Is there any way to upgrade to python 2.6 on the device? I see via apt-cache search something called python2.6-brisa but I don't think that is it and I certainly do not want to break all the app that use python...thanks for listening.

thp 2010-12-21 18:46

Re: Can I run python 2.6 on the n900?
 
You should be fine with 2.5. What features of 2.6 do you plan to use that are not available in 2.5? (maybe you need a "from __future__ import" statement to enable some features in 2.5, e.g. with_statement)

extendedping 2010-12-21 20:28

Re: Can I run python 2.6 on the n900?
 
thanks I really don't know to be honest. I just got several books and they say learn on 2.6 or above but I'm sure it is close enough. the only thing that tripped me so far was the format method vs the format statement.

HellDragon 2010-12-22 16:47

Re: Can I run python 2.6 on the n900?
 
i use python 2.6 on my n900 through easydebian

extendedping 2010-12-22 17:59

Re: Can I run python 2.6 on the n900?
 
I am installing and updating easy debian now. It crashed when I did apt-get update && apt-get upgrade, I am now redoing it with apt-get --no-install-recommends, not sure if that will make a difference...I would like to learn in 2.6 or above. I started down the perl road like a month ago but honestly python seems more doable to a new programmer like me...

marxian 2010-12-22 18:13

Re: Can I run python 2.6 on the n900?
 
Quote:

Originally Posted by extendedping (Post 902209)
I am installing and updating easy debian now. It crashed when I did apt-get update && apt-get upgrade, I am now redoing it with apt-get --no-install-recommends, not sure if that will make a difference...I would like to learn in 2.6 or above. I started down the perl road like a month ago but honestly python seems more doable to a new programmer like me...

I think Python syntax is much easier to read than Perl. I don't really miss anything from Python 2.6 upwards when developing for Maemo. The only thing I have needed is the with_statement referred to by thp.

jessi3k3 2010-12-22 18:18

Re: Can I run python 2.6 on the n900?
 
The only thing i found missing in 2.5 that's in 2.6 were some added zipfile (unzipping/zipping) functionality and function calls but they were easily reconstructable in 2.5.

extendedping 2010-12-22 18:21

Re: Can I run python 2.6 on the n900?
 
Quote:

Originally Posted by marxian (Post 902218)
I think Python syntax is much easier to read than Perl. I don't really miss anything from Python 2.6 upwards when developing for Maemo. The only thing I have needed is the with_statement referred to by thp.

Thanks, I actually have spent some time looking over your cutetube app in /opt/ and I must say it makes me really feel hopeless, but I am going to keep plugging away.

MartinK 2010-12-23 00:21

Re: Can I run python 2.6 on the n900?
 
IMO, this bug is what blocked the PyMaemo from releasing Python 2.6 for Maemo 5.

Ad. Python 2.6 features - I also use with with the future statement. It's just so handy :)
There are some other improvements in 2.6, that would be nice (less clunky sqlite support, the multiprocessing module, some new data-structures, timeout for urllib2 connections,...), but nothing really critical.


All times are GMT. The time now is 08:17.

vBulletin® Version 3.8.8