[issue27833] Process is locked when try to execute Queue.put() inside

2017-07-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: Indeed the simple solution here is to consume items in the queue before trying to join the process. -- nosy: +pitrou status: open -> closed ___ Python tracker

[issue27833] Process is locked when try to execute Queue.put() inside

2016-08-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: Davin, what are your thoughts? -- assignee: -> davin nosy: +rhettinger ___ Python tracker ___ _

[issue27833] Process is locked when try to execute Queue.put() inside

2016-08-25 Thread Xiang Zhang
Xiang Zhang added the comment: Guni, the behaviour is not consistent since your code is not that 'right'. You can not expect a not 'right' snippet to behave correctly. You can do what the programming guide says: [1] consuming all items before join [2] call q.cancel_join_thread [3] ignore prs1.

[issue27833] Process is locked when try to execute Queue.put() inside

2016-08-25 Thread Guni
Guni added the comment: Hi Eric, The reason why I still think is a actually bug is because the behaviour is not consistent. When we write code we don't exactly know how much data we will put in the queue. If this ticket is consider as not an actual bug it means that everybody has to make a c

[issue27833] Process is locked when try to execute Queue.put() inside

2016-08-24 Thread Eric V. Smith
Eric V. Smith added the comment: Tim: I believe that's correct. I'm going to close this issue. Guni: If you have more information or you feel this is an actual bug, please post it here. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___

[issue27833] Process is locked when try to execute Queue.put() inside

2016-08-24 Thread Tim Peters
Tim Peters added the comment: Looks to me like this is what the docs are talking about when they say: """ As mentioned above, if a child process has put items on a queue (and it has not used JoinableQueue.cancel_join_thread), then that process will not terminate until all buffered items have b

[issue27833] Process is locked when try to execute Queue.put() inside

2016-08-24 Thread Eric V. Smith
Eric V. Smith added the comment: Here's a slightly simplified version. I can reproduce this on Windows with 3.4.3 cygwin 32-bit and on Linux with 3.3.2 64-bit. -- nosy: +eric.smith Added file: http://bugs.python.org/file44211/27833.py ___ Python trac

[issue27833] Process is locked when try to execute Queue.put() inside

2016-08-24 Thread Xiang Zhang
Changes by Xiang Zhang : -- nosy: +xiang.zhang ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue27833] Process is locked when try to execute Queue.put() inside

2016-08-23 Thread Xiang Zhang
Changes by Xiang Zhang : -- components: +Library (Lib) nosy: +davin type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mai

[issue27833] Process is locked when try to execute Queue.put() inside

2016-08-23 Thread Guni
New submission from Guni: Hello, When I try to put a long string (I mean longer then 65523 chars) in a queue if the put is inside in Process it's block the process and Process.Join() never execute. Let's me give an example: --- from multiprocessing import Queue, Process def getLo