News for hackers. Stuff that matters.
Re:Python 3.2 for iOS by peterhajas on Sunday November 18, 2012 @11:13PM (#4802858)
I used Python, but recently discovered Pythonista for iOS. Far nicer looking interface, plus it ships touch and layer libraries for graphics stuff.
Re:Python 3.2 for iOS by mturmon on Monday November 19, 2012 @01:49AM (#4803246)
Pythonista looks nice, thanks for the tip. Some simple touch-based codes are part of the app, ready to tinker with.
Re:Python 3.2 for iOS by goostavos on Monday November 19, 2012 @12:30AM (#4803059)
Forgive the density of this question, but.. what exactly can you do with this? There is very little info both on the app's page, as well as the author's webpage.

Can you, for instance, import os (or equivalent) and interact with the phone's file system? Does the standard lib work, or some percentage of it?

Does anyone have any detailed information?

Re:Python 3.2 for iOS by statictype on Monday November 19, 2012 @12:38AM (#4803081)
It gives you an interactive python shell on your iOS device. You can't access the file system, because of the OS's sandboxing rules. The standard library does work modulo any sandbox rules. You can, for example, write scripts that use urllib to talk over a network and do some work.
Re:Python 3.2 for iOS by gte910h on Sunday November 18, 2012 @10:26PM (#4802743)
I keep seeing this on HN, and keep thinking "Finally, can write apps in python", then it goes back to the same old python shell program and I'm a bit saddened.
Re:Python 3.2 for iOS by scorpion032 on Monday November 19, 2012 @04:11AM (#4803590)
If you are interested in _that_ kind of thing, here you go: http://kivy.org/#home
Re:Python 3.2 for iOS by gte910h on Tuesday November 20, 2012 @07:53AM (#4808767)
I definitely am. That is neat.

Not quite "Python rubymotion" but still interesting.

Re:Python 3.2 for iOS by recursive on Sunday November 18, 2012 @11:37PM (#4802907)
So what's stopping you from writing apps in python?
Re:Python 3.2 for iOS by starik36 on Sunday November 18, 2012 @10:36PM (#4802770)
How does work if Apple forbids managed runtimes to exist in iOS?
Re:Python 3.2 for iOS by mikeash on Sunday November 18, 2012 @10:57PM (#4802820)
They don't, they only forbid downloading and executing new code after installation.
Re:Python 3.2 for iOS by mrich on Monday November 19, 2012 @05:42AM (#4803783)
So could you download an extension python module and run it? If so, it should be disallowed from the app store (going by Apple's rules).
Re:Python 3.2 for iOS by takluyver on Monday November 19, 2012 @06:42AM (#4803932)
It seems there are ways:

http://forums.pythonforios.com/viewtopic.php?f=14&t=405 http://forums.pythonforios.com/viewtopic.php?f=18&t=453

Whether Apple haven't noticed yet, or are just turning a blind eye, I don't know.

Re:Python 3.2 for iOS by starik36 on Monday November 19, 2012 @01:46AM (#4803242)
If that was the case you could run Mono/.NET code without pre-JITting it. And that is not the case.
Re:Python 3.2 for iOS by beagle3 on Monday November 19, 2012 @02:14AM (#4803300)
It IS the case. What you can't do is JITting. And, as far as I know, no one has bothered porting a pure .NET interpreter to iOS.
Re:Python 3.2 for iOS by gurkendoktor on Monday November 19, 2012 @02:06AM (#4803279)
I think they forbid JITting, but you can still interpret whatever you want.
Re:Python 3.2 for iOS by pav3l on Sunday November 18, 2012 @11:12PM (#4802854)
How do people use these sort of things? I'm genuinely curious. It's not even that fancy of a calc app, since you can't support numpy or plotting.

If someone could implement something similar to http://www.mathworks.com/mobile/ for Python, now that would be cool!

Re:Python 3.2 for iOS by wodniok on Monday November 19, 2012 @08:28AM (#4804231)
Re:Python 3.2 for iOS by LarryDavid99 on Sunday November 18, 2012 @11:46PM (#4802939)
Sweet, I've got the 2.7 app and have been waiting for 3.2!