Export to GitHub

python-for-android - issue #10

Python 3


Posted on Mar 31, 2011 by Swift Elephant

Python 3.2.1 to be exact. What is required to make it possible on Android?

Comment #1

Posted on Apr 20, 2011 by Swift Horse

Someone needs to work out how to crosscompile python 3 for an ARM platform.

Comment #2

Posted on Apr 20, 2011 by Happy Camel

Thing is why would we want that?

Py3 isn't much supported yet, many libraries are not compatible, and that's what makes Python strong it's "batteries" why do we want Py3 on Android now if we can't get batteries.

If you have a resonable why I can take a look and what it takes.

Comment #3

Posted on Apr 20, 2011 by Swift Elephant

We want it because syntax parsing for Python 3 is simplified. There are less syntax sugar constructs, and thanks to that performance should be greater.

As a side effect - if some package has ported to Python 3, that means it is active, and its developers are probably interested to test it on their Android devices. I don't know how to cross-compile Python 3 for ARM, but if it is possible to cross-compile PyPy, then the efforts to Python 3 porting can be joined.

Comment #4

Posted on Apr 20, 2011 by Happy Camel

yes I know py3, but that argument is not totally valid.

For example Django which is one of Python's largest web frameworks is not py3 compatible officially, there's a port, but not the official version.

Main development is been done for py 2.7, as everyone is waiting the others to port they're applications.

You could try mimicing what I did for py2 to get py3 into Android, but again, I'm not sure if it makes much sense, as it breaks the API and renders some packages useless.

Comment #5

Posted on Apr 20, 2011 by Swift Elephant

Do you really expect users running Django apps on Android any time soon? I'd say they will be more interested to run Blender on their Honeycomb tablets.

Comment #6

Posted on Apr 23, 2011 by Swift Bear

Well I do use Django apps on Android, and I'm releasing a production ready application based on Twisted soon. I don't really think we will see Blender on Android any time soon, I guess gtk or qt are dependencies. Still go ahead, do the port, I would like to help you, but don't expect me to do it (and I'm talking just for me here) unless I really need it.

Comment #7

Posted on Apr 23, 2011 by Swift Bear

Well I do use Django apps on Android, and I'm releasing a production ready application based on Twisted soon. I don't really think we will see Blender on Android any time soon, I guess gtk or qt are dependencies. Still go ahead, do the port, I would like to help you, but don't expect me to do it (and I'm talking just for me here) unless I really need it.

Comment #8

Posted on Apr 26, 2011 by Swift Elephant

Blender is OpenGL rendered. No GTK or Qt. Just want to stress that starting with Python 3 on alpha platforms is more beneficial for users as it gives them ability to write tutorials in a consistent language early. Many libraries can be run with 2to3 and it is a goal to catch early if they can't.

Comment #9

Posted on Jun 14, 2011 by Helpful Horse

I think that we really need Python 3.X. Why? For example, let's look at me. I'm learning Python. And I use P3.2. And I know there are many differences for 2.X versions. I'm not the only one, who have same request - to develop using Python. I'm not newbie on developing - have 3 years Delphi using. I think last version of language is thу best. That is why we really need python 3.2

Comment #10

Posted on Jul 8, 2011 by Massive Bear

Writing applications for Android devices is a great, fun way to learn programming and for that reason alone it's worth getting a new generation of coders onto Python 3 now.

Comment #11

Posted on Jul 11, 2011 by Happy Hippo

Python 3 is the future, don't get stuck in the past...

Comment #12

Posted on Sep 26, 2011 by Happy Ox

I agree with those above me, I started developing in python at the end of the 2.7 era and decided to just jump to 3 and I know there is a large and ever-growing group of us.

Comment #13

Posted on Oct 9, 2011 by Happy Dog

Same here, started learning Python 2.6/2.7 and then jumped to 3.2. I would appreciate being able to code for 3.x on my Android phone.

Comment #14

Posted on Oct 14, 2011 by Grumpy Kangaroo

This is must too get novacut on android so it least one project needs it now if not sooner

Comment #15

Posted on Oct 20, 2011 by Quick Hippo

i want python 3, but google is not interested in it, GAE does not support it,and android?

Comment #16

Posted on Nov 7, 2011 by Happy Giraffe

Comment deleted

Comment #17

Posted on Nov 7, 2011 by Happy Giraffe

I have partially port the Python 3.2 to Android, by manually applying the P4A's patches to Py3's source code. Details in http://www.klayge.org/2011/11/06/compile-python-3-2-with-android-ndk-r6/.

Comment #18

Posted on Nov 12, 2011 by Grumpy Panda

I am currently developing in python 3(first version of py that I've tried) and am look for a way to run apps on my phone. Seeing that all I know about python code is in python 3, it would be nice if python 3 was supported, otherwise I would just not develop for android until it WAS supported.

Comment #19

Posted on Mar 3, 2012 by Happy Kangaroo

I would also like to have a fully functioning Python 3 version for android. All of my University stuff in python is based on 3.0 >. I'm forced to try and learn both versions on-the-fly and its difficult.

Comment #20

Posted on Mar 21, 2012 by Swift Horse

Alpha version of 3.2.2 available. See: http://code.google.com/p/python-for-android/wiki/Python3

Comment #21

Posted on Sep 29, 2012 by Happy Horse

rjmatthews62 I'm taking a programming class to learn python and have to download Python 3 along with Idle to run scripts. I came across this site, and your download Python 3 for Android after almost giving up and thinking I had to drop the class because I couldn't find a compatible version for my Android device. Thanks so much!!! By the way, do you know the source, my device is blocking the download because it says the source is unknown. Thx, Shimmerous@gmail.com

Comment #22

Posted on Sep 29, 2012 by Swift Horse

You need to turn on 'Unknown Sources' under Menu-->Applications.

You'll also need to have sl4a installed: sl4ahttp://code.google.com/p/android-scripting/

Robbie

-- http://www.apress.com/9781430237839 Beginning Android Tablet Programming http://www.apress.com/9781430237839

[image: Beginning Android Tablet Programming]http://www.apress.com/9781430237839

Status: Started

Labels:
Type-Enhancement Priority-Medium