Le vendredi 25 mars 2011 à 07:59 +0100, "Martin v. Löwis" a écrit : > > Is there a bug somewhere, or do I misunderstood something important? > > Module unloading is simply not implemented, and would be very difficult > to implement. My problem is that if Python is embeded, my module will still be active after Py_FinalizeEx(). For example, if it installed an handler for the SIGSEGV signal: a segmentation fault will call the handler which will try to get the interpreter state, but there is no more interpreter. I don't know if it is a problem or not, but I would prefer to cleanup my module on Py_FinalizeEx(). I can try to ensure that Python does restore all signals installed by faulthandler and cancel the current alarm() (used by dump_traceback_later()). Or I can hardcode something to unload faulthandler in Py_FinalizeEx() (or somewhere else). Victor
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4