4 ms·
Quite the contrary, it is easy to call system api from python. That's why we have so many python wripmers for c code. You have the stdlib ctypes of course, but
by sametmax 8y ago
Quite the contrary, it is easy to call system api from python. That's why we have so many python wripmers for c code.
You have the stdlib ctypes of course, but also pypy's cffi for an even better story.
We even have specialized ready to use tools for those, such as pywin32 to manipulate the windows api and registry, pyqt to leverage the c++ qt lib and all it's tooling, or watchdog to survey file changes, using the native api when possible.
In fact, mac and linuxes implement natively of lot of tools in their os for this reason.
There is also a reason it's one of the few languages allowed in prod at google. It's the best at nothing, but it's damn good at most things.
- saagarjha 8y ago> You have the stdlib ctypes of course, but also pypy's cffi for an even better story. Not something I would call seamless. > pyqt to leverage the c++ qt lib and all it's tooling This isn't native. > mac and linuxes implement natively of lot of tools in their os for this reason Generally command line scripts, which is something that Python is good at. > There is also a reason it's one of the few languages allowed in prod at google. What Google allows in production has only an oblique relevance to whether it should be used for a specific task.