[issue23489] atexit handlers are not executed when using multiprocessing.Pool.map.

2015-02-20 Thread Davin Potts
Davin Potts added the comment: You make an overall valid point that despite reading the documentation, the resulting behavior of your code was not what you expected -- I take that specific complaint very seriously anytime anyone makes it. Regarding your recommendations: I) Unfortunately this

[issue23489] atexit handlers are not executed when using multiprocessing.Pool.map.

2015-02-20 Thread juj
juj added the comment: While the test case can be 'fixed' by changing the code to use "if __name__ == '__main__'", and I'm ok to do it in my code to work around the problem, I would argue the following: 1) calling this not a bug (or solving it only at documentation level) does not at all feel

[issue23489] atexit handlers are not executed when using multiprocessing.Pool.map.

2015-02-20 Thread Davin Potts
Davin Potts added the comment: I should have added in my prior comments: juj: thank you very much for providing the info about the platform you tested on and even an example piece of code that triggered the problem. I wish all issues came with the level of info you provided. -- ___

[issue23489] atexit handlers are not executed when using multiprocessing.Pool.map.

2015-02-20 Thread Davin Potts
Davin Potts added the comment: There are at least two issues at play here. Running the attached file on OS X produces starkly different results -- console prints: CREATED TEMP DIRECTORY /var/folders/s4/tc1y5rjx25vfknpzvnfh1b14gn/T/temp_z6I0BA task1 task2 ATEXIT: REMOVING TEMP DIRECTORY /

[issue23489] atexit handlers are not executed when using multiprocessing.Pool.map.

2015-02-20 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +davin, sbt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue23489] atexit handlers are not executed when using multiprocessing.Pool.map.

2015-02-20 Thread juj
juj added the comment: This was tested on Python 2.7.9 64-bit on Windows 8.1, however I believe that it occurs equally on OSX and Linux, since I am running servers with those OSes that also exhibit temp file leaking issues (although I did not specifically confirm if the root cause is the same

[issue23489] atexit handlers are not executed when using multiprocessing.Pool.map.

2015-02-20 Thread juj
New submission from juj: When Multiprocessing.Pool.map is used for a script that registers atexit handlers, the atexit handlers are not executed when the pool threads quit. STR: 1. Run attached file in Python 2.7 with 'python task_spawn.py' 2. Observe the printed output. Observed: Console pr