3 ms·
The GIL is a legit pain when dealing with GUIs. When you're jumping between C/C++ code and Python code you don't care much about the GIL... until you have a GU
by ericfrederich 9y ago
The GIL is a legit pain when dealing with GUIs.
When you're jumping between C/C++ code and Python code you don't care much about the GIL... until you have a GUI which needs to be kept responsive and needs the GIL to do so.
- simonh 9y agoIve done a fair bit of GUI development in Python, mainly using Qt and not hit any significant responsiveness issues. The multi-threading support in Python is perfectly fine for providing responsive switching between activities and event loops, as long as you don't have anything that locks hard for too long. But in that case you can always split that off into a separate process e.g. The way browsers nowadays run a process per tab.