4 ms·
ctypes is a thing, and gives you access to the world of runtime-loadable libraries on your platform. Beyond that, C modules for Python by hand, SWIG, Cython (ca
by DrJosiah 8y ago
ctypes is a thing, and gives you access to the world of runtime-loadable libraries on your platform. Beyond that, C modules for Python by hand, SWIG, Cython (can take Python 3.x annotations now), etc., are not bad at all.
Can you explain how platform-specific stuff takes "a lot of work" with Python, and wouldn't with some other language that is not Python?
- saagarjha 8y ago> Can you explain how platform-specific stuff takes "a lot of work" with Python, and wouldn't with some other language that is not Python? Sure, just look at a modern Cocoa app written in Swift, or Android one in Java, and compare it to the amount of work you'd have to do to shoehorn Python in there.
- viraptor 8y agoLike this? https://pybee.org/project/using/ios-app/ https://pybee.org/project/using/ios-app/ https://pybee.org/project/using/android-app/ https://pybee.org/project/using/android-app/
- DrJosiah 8y agoviraptor makes a very compelling case for at least 1 option for mobile apps in Python. About 15.5 years ago while I was still a grad student, I released a (horribly designed, mostly self-experimentation) editor in Python + wxPython that I initially wrote to run on Windows. I didn't run it regularly in Linux or OS X until 2008, and it all just worked. OS X was a little laggy with my editor, but hey, write once run on 3 platforms. Python is really solid on multi-platform, because there are so many Python users already using every platform that want to bring Python there.