Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.011 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'python,': 0.01; 'subclass': 0.09; 'subclasses': 0.09; 'through.': 0.09; 'to:name:python list': 0.09; 'pm,': 0.11; 'somewhere': 0.11; 'am,': 0.14; 'wrote:': 0.14; 'numpy': 0.16; 'received:mindspring.com': 0.16; 'subject:memory': 0.16; 'subject:vs.': 0.16; 'surprising': 0.16; 'header:In-Reply-To:1': 0.22; 'do,': 0.22; 'that?': 0.23; 'objects': 0.24; "what's": 0.24; "i'm": 0.26; "i'll": 0.26; 'depends': 0.29; 'extent': 0.29; 'list': 0.30; 'implement': 0.30; 'easier.': 0.31; 'grasp': 0.31; 'does': 0.31; 'to:addr:python-list': 0.32; 'asking': 0.32; "i've": 0.33; 'got': 0.34; 'that,': 0.35; 'point': 0.35; 'surprised': 0.35; 'usually': 0.36; 'think': 0.36; 'charset:us-ascii': 0.36; 'else': 0.37; 'should': 0.37; 'apr': 0.38; 'url:mail-archive': 0.38; 'but': 0.38; 'url:org': 0.38; 'third': 0.38; 'to:addr:python.org': 0.39; 'header:Mime-Version:1': 0.39; 'received:24': 0.39; 'attempt': 0.40; 'philip': 0.60; 'best': 0.60; 'header:Message-Id:1': 0.62; 'upon': 0.63; 'subject:. ': 0.66; 'luck': 0.71; 'john,': 0.84; 'received:69.73': 0.84; 'tomorrow.': 0.84 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1082) Subject: Re: Multiprocessing, shared memory vs. pickled copies From: Philip Semanchuk In-Reply-To: <03b4730d-8106-4bc1-b79f-55bd62825f4a@w7g2000yqe.googlegroups.com> Date: Thu, 7 Apr 2011 09:23:27 -0400 Content-Transfer-Encoding: quoted-printable References: <6ace38dc-33c6-44ab-a17a-084d62d666cb@w9g2000prg.googlegroups.com> <5d0fcd63-cebf-4b6e-a176-20cb7bbec389@n12g2000yqc.googlegroups.com> <03b4730d-8106-4bc1-b79f-55bd62825f4a@w7g2000yqe.googlegroups.com> To: Python list X-Mailer: Apple Mail (2.1082) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - deimos.nocdirect.com X-AntiAbuse: Original Domain - python.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - semanchuk.com X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 34 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1302182620 news.xs4all.nl 81479 [::ffff:82.94.164.166]:44411 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:2772 On Apr 7, 2011, at 3:41 AM, John Ladasky wrote: > Following up to my own post... >=20 > On Apr 6, 11:40 pm, John Ladasky wrote: >=20 >> What's up with that? >=20 > Apparently, "what's up" is that I will need to implement a third > method in my ndarray subclass -- namely, __reduce__. >=20 > http://www.mail-archive.com/numpy-discussion@scipy.org/msg02446.html >=20 > I'm burned out for tonight, I'll attempt to grasp what __reduce__ does > tomorrow. >=20 > Again, I'm going to point out that, given the extent that > multiprocessing depends upon pickling, pickling should be made > easier. This is Python, for goodness' sake! I'm still surprised at > the hoops I've got to jump through. Hi John, My own experience has been that when I reach a surprising level of hoop = jumping, it usually means there's an easier path somewhere else that I'm = neglecting.=20 But if pickling subclasses of numpy.ndarray objects is what you really = feel you need to do, then yes, I think asking on the numpy list is the = best idea.=20 Good luck Philip=