Piotr Lopusiewicz added the comment:

>>For most ctypes uses, closing is irrelevant, since people typically access 
>>system libraries that are independently loaded anyway, so closing them would 
>>not have any effect.

My use case is this: I test some things, then I need to recompile my .dll 
without closing the interpreter (as building stuff to begin tests is quiet 
expensive) then reload it. I can't recompile it because Windows blocks the .dll 
file and gcc can't overwrite it. Deleting the reference and running 
gc.collect() doesn't work.
It would be very nice to have a way to do this.

----------
nosy: +Piotr.Lopusiewicz

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue14597>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to