Can someone review my patch? It makes GIL API calls noops in single threaded applications, i.e. if PyEval_InitThreads hasn't been called.
It's a very simple patch, but it makes a lot of difference if you want to make a Python extension module thread-aware without incurring an extra (unnecessary) performance penalty in single-threaded programs.
Without this in Python, each extension library has to keep track of thread state (enabled or not), and one extension library doesn't work well with another without some explicit synchronization between the two.
Please, we should fix this before Python 2.4 final.
 https://sourceforge.net/tracker/? func=detail&aid=1011380&group_id=5470&atid=105470