Re: [Python-Dev] multiprocessing not compatible with functional.partial

2009-02-12 Thread Jesse Noller
On Feb 12, 2009, at 10:58 AM, Neal Becker wrote: Is it possible to get a better error message (regarding the pickle- ability)? Sure, most of the time it does have a better error msg. ___ Python-Dev mailing list Python-Dev@python.org http://mail

Re: [Python-Dev] multiprocessing not compatible with functional.partial

2009-02-12 Thread Neal Becker
Hrvoje Niksic wrote: > Calvin Spealman wrote: >> I don't think it would be unreasonable to consider either 1) making >> functools.partial picklable (I don't know how feasible this is) > > It's not only feasible, but quite easy and, I think, useful. A > "partial" instance is a simple triplet of (

Re: [Python-Dev] multiprocessing not compatible with functional.partial

2009-02-12 Thread Hrvoje Niksic
Calvin Spealman wrote: I don't think it would be unreasonable to consider either 1) making functools.partial picklable (I don't know how feasible this is) It's not only feasible, but quite easy and, I think, useful. A "partial" instance is a simple triplet of (function, args, kwds), and it c

Re: [Python-Dev] multiprocessing not compatible with functional.partial

2009-02-12 Thread Jesse Noller
On Thu, Feb 12, 2009 at 9:22 AM, Calvin Spealman wrote: > On Thu, Feb 12, 2009 at 9:06 AM, Christian Heimes wrote: >> Neal Becker schrieb: >>> If the argument to pool.map (f, args) >>> is >>> f = functional.partial (my_func, some_keyword_arg=whatever) >>> >>> I get: >>> >>> Traceback (most recent

Re: [Python-Dev] multiprocessing not compatible with functional.partial

2009-02-12 Thread Calvin Spealman
On Thu, Feb 12, 2009 at 9:06 AM, Christian Heimes wrote: > Neal Becker schrieb: >> If the argument to pool.map (f, args) >> is >> f = functional.partial (my_func, some_keyword_arg=whatever) >> >> I get: >> >> Traceback (most recent call last): >> File "/usr/lib/python2.5/site-packages/multiproce

Re: [Python-Dev] multiprocessing not compatible with functional.partial

2009-02-12 Thread Christian Heimes
Neal Becker schrieb: > If the argument to pool.map (f, args) > is > f = functional.partial (my_func, some_keyword_arg=whatever) > > I get: > > Traceback (most recent call last): > File "/usr/lib/python2.5/site-packages/multiprocessing-2.6.1.1-py2.5-linux- > self.run() > File "/usr/lib/pyt

[Python-Dev] multiprocessing not compatible with functional.partial

2009-02-12 Thread Neal Becker
If the argument to pool.map (f, args) is f = functional.partial (my_func, some_keyword_arg=whatever) I get: Traceback (most recent call last): File "/usr/lib/python2.5/site-packages/multiprocessing-2.6.1.1-py2.5-linux- self.run() File "/usr/lib/python2.5/site-packages/multiprocessing-2.6.