![]() |
Is there Python 3.0 for the N900 device?
I'm new to Python programming. Since I've started researching Python, I've noticed there are two different "branches": the 2.X and the 3.x. So, what do you recommend:
1) Start to learn 2.X, because this is the one that is available for Maemo 5? 2) Start to learn 3.x and wait for this version on Maemo 5? Furthermore: 3) Are thre plans to bring Python 3.0 to Maemo? 4) What about PyQT4? I am very interested in PyQT. Is this available on both (2.x and 3.x) branches? Thanks |
Re: Is there Python 3.0 for the N900 device?
Quote:
"Mainstream" Python 3.x is still not really the case, but the good news is that it's more of a "clean-up" than a re-invention, so the only differences that you will note between 2.x and 3.x (when it's time to move to the newer version) is that it's just a clean-up of the language and the libraries (so 3.x will feel more "logical" and "tidy" than 2.x). But there are lots of docs on the web describing the difference between 2.x and 3.x. For Maemo development, just stick to Python 2.5 and then use whatever Python version will be used in future versions. HTH. |
Re: Is there Python 3.0 for the N900 device?
Start with 2.5. I don't think upgrading to 3.x later is going to be a problem but waiting for it is probably a long wait.
PyQT (GPL, the orgininal QT python bindings) and PySide (LGPL) are both available for 2.5 Python on Maemo5. Do note though at the moment GTK (more specifically Hildon) is still the "official" graphics toolkit for Maemo5. On Maemo6 QT will be the "official" toolkit. |
Re: Is there Python 3.0 for the N900 device?
Anderson Lizardo had this to say:
Quote:
Looking at the bug, it still appears to hold true but I don't know if it affects any possible upgrades to 3.0. |
Re: Is there Python 3.0 for the N900 device?
Quote:
With the ratio of python applications already in extras considerably high (see http://mairas.net/pymaemo-stats/ for some numbers), it is very risky to switch from 2.5 to 2.6 or 3.0 in Fremantle, as they are binary incompatible (which affects bindings). This would break existing packages for no relevant gain, if not done carefully. Supporting two runtime versions in Maemo is also not feasible, because you would need to have bindings compiled for both versions, which increases packages sizes considerably. It would be a problem also for Hildon applets, as just one Python loader can be loaded at a time (so in fact you would have either a 2.5 or a 2.6/3.0 loader, not both). Of course none of these problems will exist once we begin working on Python support for the next Maemo release. It is not decided yet if it will be 2.6 or 3.0, but let's hold the discussion until that becomes relevant (i.e. when some public Harmattan SDK pre-release is made) :) Note that code running on Python 2.5 will most probably work on 2.6 or 3.0 without changes, except for a few syntactic changes described on the Python documentation. Regards, |
Re: Is there Python 3.0 for the N900 device?
Thanks y'all for the hints. I will start with Python 2.5 then.
Quote:
If there is anything I could do to help "promote" new versions of Python or whatever I will help. |
Re: Is there Python 3.0 for the N900 device?
Quote:
(See http://docs.python.org/whatsnew/index.html for the specific changes on each version; for the new features, there are tools that help you migrate old code to the new versions) Just look at the Extras repository and see the number of wonderful and complex applications running on Python 2.5. I'm pretty sure you will have no limitations using it for your applications too. Our packages are based on Debian, which will continue to maintain and make new releases for bug fixes for a long time. There is absolutely no problem in having 2.5.x in Maemo 5 for the entire lifetime of this product (in my opinion). Quote:
Regards, |
All times are GMT. The time now is 04:15. |
vBulletin® Version 3.8.8