[issue21788] Rework Python finalization

2015-03-18 Thread STINNER Victor
STINNER Victor added the comment: This issue was more a reminder for myself (TODO). I'm no more interesting to work on it, so I close it. The Python finalization is very fragile. I prefer to not touch it again :-p -- resolution: -> out of date status: open -> closed _

[issue21788] Rework Python finalization

2014-06-17 Thread STINNER Victor
STINNER Victor added the comment: Charles-François Natali wrote a general comment about daemon threads: http://bugs.python.org/issue19466#msg206028 -- ___ Python tracker ___

[issue21788] Rework Python finalization

2014-06-17 Thread STINNER Victor
STINNER Victor added the comment: Benjamin changed ThreadState_DeleteCurrent() to fix an issue in this part of the code, but then reverted his change: "revert tstate_delete_common, since it's pretty much wrong" http://hg.python.org/cpython/rev/3ce746735b99 (Yeah this part of the code is really

[issue21788] Rework Python finalization

2014-06-17 Thread STINNER Victor
New submission from STINNER Victor: Hi, During the development of Python 3.4, I tried to emit warnings if a file is destroyed without being explicitly closed. The warnings were not emited in threads during Python finalization. Here are related changes: - Issue #19421: "FileIO destructor impor