[issue15198] multiprocessing Pipe send of non-picklable objects doesn't raise error

2013-06-20 Thread Richard Oudkerk

Changes by Richard Oudkerk shibt...@gmail.com:


--
resolution:  - works for me
stage:  - committed/rejected
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15198
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15198] multiprocessing Pipe send of non-picklable objects doesn't raise error

2012-07-01 Thread Richard Oudkerk

Richard Oudkerk shibt...@gmail.com added the comment:

Then I doubt this is a bug in Python.

If your class does not override __reduce__, __reduce_ex__ or 
__getstate__/__setstate__, then it is probably one of the attributes of your 
instance which is causing the problem.  You could try to find out which one by 
trying

cPickle.loads(cPickle.dumps(attribute, -1))

for each attribute of an instance of your class to see if it raises an error.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15198
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15198] multiprocessing Pipe send of non-picklable objects doesn't raise error

2012-07-01 Thread Senthil Kumaran

Senthil Kumaran sent...@uthcode.com added the comment:

On Sun, Jul 1, 2012 at 1:16 AM, Richard Oudkerk rep...@bugs.python.org wrote:
 Then I doubt this is a bug in Python.

I guess, you meant, this is NOT a bug in Python.

--
nosy: +orsenthil

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15198
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15198] multiprocessing Pipe send of non-picklable objects doesn't raise error

2012-07-01 Thread Ian Bell

Ian Bell ian.h.b...@gmail.com added the comment:

I have repaired my class so that it pickles properly, but that does not resolve 
the issue that if you send a non-picklable object through a pipe, it should 
raise an error, rather than hang.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15198
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15198] multiprocessing Pipe send of non-picklable objects doesn't raise error

2012-07-01 Thread Richard Oudkerk

Richard Oudkerk shibt...@gmail.com added the comment:

 I have repaired my class so that it pickles properly, but that does not 
 resolve the issue that if you send a non-picklable object through a pipe, 
 it should raise an error, rather than hang.

What do you mean by hang?  Do you mean that send() succeeds and recv() raises 
an error.  That might cause your *program* to hang, but send() itself should 
not hang.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15198
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15198] multiprocessing Pipe send of non-picklable objects doesn't raise error

2012-06-30 Thread Richard Oudkerk

Richard Oudkerk shibt...@gmail.com added the comment:

What type of object did you try to send, and how can the problem be reproduced?

There are plenty of types which don't support pickling, and where pickling only 
succeeds in producing invalid data which cannot be successfully unpickled.  The 
exception raised when unpickling will depend on the type of the object.

--
type: crash - behavior

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15198
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15198] multiprocessing Pipe send of non-picklable objects doesn't raise error

2012-06-30 Thread Ian Bell

Ian Bell ian.h.b...@gmail.com added the comment:

I had issues with a class that I wrote myself.  It is a rather involved data 
structure with all kinds of interesting things going on.  Unfortunately I 
cannot put together a minimal working example that will cause a Python hang.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15198
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15198] multiprocessing Pipe send of non-picklable objects doesn't raise error

2012-06-27 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
nosy: +sbt

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15198
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15198] multiprocessing Pipe send of non-picklable objects doesn't raise error

2012-06-26 Thread Ian Bell

New submission from Ian Bell ian.h.b...@gmail.com:

When a non-picklable object is sent through a multiprocessing.Pipe, no 
exception is raised, instead when trying to read the other end of the pipe, a 
TypeError is raised:

TypeError: Required argument 'handle' (pos 1) not found

--
components: Windows
messages: 164118
nosy: Ian.Bell
priority: normal
severity: normal
status: open
title: multiprocessing Pipe send of non-picklable objects doesn't raise error
versions: Python 2.7

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15198
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15198] multiprocessing Pipe send of non-picklable objects doesn't raise error

2012-06-26 Thread Ian Bell

Changes by Ian Bell ian.h.b...@gmail.com:


--
type:  - crash

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15198
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com