Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #50121
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder3.xlned.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <rosuav@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.018 |
| X-Spam-Evidence | '*H*': 0.96; '*S*': 0.00; 'string': 0.09; '3:27': 0.16; 'arbitrarily': 0.16; 'files)': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'sockets': 0.16; 'subject:class': 0.16; 'subject:object': 0.16; 'subject:type': 0.16; 'them...': 0.16; 'prevent': 0.16; 'wrote:': 0.18; 'creating': 0.23; '(such': 0.24; 'mon,': 0.24; 'header:In-Reply- To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'pickle': 0.31; 'something': 0.35; 'objects': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'should': 0.36; 'to:addr:python- list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'skip:u 10': 0.60; 'jul': 0.74; 'still.': 0.84; '2013': 0.98 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=nhc6KN5wOpohoC4qiwAIJDHnii8XPOQZtK0IfZRCecw=; b=WUyLPnps/FJSzxnakh+j3ui4NIhX9VaMTQczYDYAqKl+92fQ/zvEuNSDdZ74ceVIvQ oCLWnHpHL6c5VdBFLDKd4+vd5g75Ceh7YhlZxPJETn5kPvlneOREGNCNJiaEqKtlkM8R RNuB1YtRHqnKUJvu6SBk60AOTB8JxV2LwflD1QPGibPKJKwz2HckRFHuy+Kya5qJUZ7K 3u8Lduva8X0JqhlufaFJ7HZKNNeX7vnP7krxdxUOYol/WuzNFLsTAUVXfYm5QLrzKkKX lLRiTmvplvrgGG0drB8pioGX+BqiMMEGGbhPHwEBK8PbEDC1LKlWqfSsBZbnXt6Zsuv6 kvVA== |
| MIME-Version | 1.0 |
| X-Received | by 10.58.249.236 with SMTP id yx12mr12901183vec.25.1373263050117; Sun, 07 Jul 2013 22:57:30 -0700 (PDT) |
| In-Reply-To | <18dd6d34-5afa-4324-bd2f-f5561413b156@googlegroups.com> |
| References | <18dd6d34-5afa-4324-bd2f-f5561413b156@googlegroups.com> |
| Date | Mon, 8 Jul 2013 15:57:30 +1000 |
| Subject | Re: UnpicklingError: NEWOBJ class argument isn't a type object |
| From | Chris Angelico <rosuav@gmail.com> |
| To | python-list@python.org |
| Content-Type | text/plain; charset=ISO-8859-1 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.4365.1373263053.3114.python-list@python.org> (permalink) |
| Lines | 11 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1373263053 news.xs4all.nl 16001 [2001:888:2000:d::a6]:52348 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:50121 |
Show key headers only | View raw
On Mon, Jul 8, 2013 at 3:27 PM, skunkwerk <skunkwerk@gmail.com> wrote: > I'm using a custom pickler that replaces any un-pickleable objects (such as sockets or files) with a string representation of them... > > If it pickles okay, why should it not be able to unpickle? Any ideas? Generally, the reason something won't pickle is because it won't be able to be unpickled. So arbitrarily creating a string might allow the pickle operation to continue, but might well prevent unpickling still. I don't know, you'd have to play around with it. ChrisA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
UnpicklingError: NEWOBJ class argument isn't a type object skunkwerk <skunkwerk@gmail.com> - 2013-07-07 22:27 -0700
Re: UnpicklingError: NEWOBJ class argument isn't a type object Chris Angelico <rosuav@gmail.com> - 2013-07-08 15:57 +1000
Re: UnpicklingError: NEWOBJ class argument isn't a type object dieter <dieter@handshake.de> - 2013-07-08 08:53 +0200
Re: UnpicklingError: NEWOBJ class argument isn't a type object Peter Otten <__peter__@web.de> - 2013-07-08 09:45 +0200
Re: UnpicklingError: NEWOBJ class argument isn't a type object skunkwerk <skunkwerk@gmail.com> - 2013-07-08 16:38 -0700
Re: UnpicklingError: NEWOBJ class argument isn't a type object Peter Otten <__peter__@web.de> - 2013-07-09 09:24 +0200
csiph-web