I am at home in the Linux world. Playing around with Pythonista gives the Impression that I have to live with a number of limitations due to iOS, see example belog. My question: where can i find a list of Pythonista/iOS limitations?
Edit: Adding list of known limits compared to Linux:
- No fork/exec for new processes. Impacts subprocess module
- Due to missing fork: No full cleanup of process resources (memory, threads, file handles, ...)
- No file access outside of application directory
- No /dev/null and other special files.
- Limited processing power of devices (compared to typical PC/Mac)
- Process usually is stopped/killed after a while. Workaround: see http://omz-forums.appspot.com/pythonista/post/4981737633349632#post-5328325388009472
Example for limitation:
>>> import subprocess
>>> subprocess.call(["ls", "-l"])
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/mobile/Containers/Bundle/Application/8C59C68D-71BF-4CBB-90F8-373A1752DEE1/Pythonista.app/pylib/subprocess.py", line 524, in call
return Popen(*popenargs, **kwargs).wait()
File "/private/var/mobile/Containers/Bundle/Application/8C59C68D-71BF-4CBB-90F8-373A1752DEE1/Pythonista.app/pylib/subprocess.py", line 711, in __init__
errread, errwrite)
File "/private/var/mobile/Containers/Bundle/Application/8C59C68D-71BF-4CBB-90F8-373A1752DEE1/Pythonista.app/pylib/subprocess.py", line 1205, in _execute_child
self.pid = os.fork()
OSError: [Errno 1] Operation not permitted
Georg