Reply
Thread Tools
Posts: 838 | Thanked: 292 times | Joined on Apr 2010
#1
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's Avatar
Posts: 1,391 | Thanked: 4,272 times | Joined on Sep 2007 @ Vienna, Austria
#2
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)
 
Posts: 838 | Thanked: 292 times | Joined on Apr 2010
#3
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.
 
Posts: 12 | Thanked: 2 times | Joined on May 2010
#4
i use python 2.6 on my n900 through easydebian
 
Posts: 838 | Thanked: 292 times | Joined on Apr 2010
#5
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's Avatar
Posts: 2,448 | Thanked: 9,523 times | Joined on Aug 2010 @ Wigan, UK
#6
Originally Posted by extendedping View Post
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.
__________________
'Men of high position are allowed, by a special act of grace, to accomodate their reasoning to the answer they need. Logic is only required in those of lesser rank.' - J K Galbraith

My website

GitHub
 
Posts: 304 | Thanked: 176 times | Joined on Oct 2009
#7
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.
 
Posts: 838 | Thanked: 292 times | Joined on Apr 2010
#8
Originally Posted by marxian View Post
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.
 
Posts: 1,548 | Thanked: 7,510 times | Joined on Apr 2010 @ Czech Republic
#9
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.
__________________
modRana: a flexible GPS navigation system
Mieru: a flexible manga and comic book reader
Universal Components - a solution for native looking yet component set independent QML appliactions (QtQuick Controls 2 & Silica supported as backends)
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 04:11.