Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #12439

Re: Unpickle error -- "object has no attribute ...."

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeder.news-service.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.002
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'subject:object': 0.07; 'python': 0.08; 'question:': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:80.91.229.12': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:lo.gmane.org': 0.09; 'subject:error': 0.10; '(debug': 0.16; 'debugger,': 0.16; 'received:dip.t-dialin.net': 0.16; 'received:t-dialin.net': 0.16; "system's": 0.16; 'weapon': 0.16; 'wingide': 0.16; 'wrote:': 0.16; "wouldn't": 0.17; 'trace': 0.18; 'appropriate': 0.20; 'suggest': 0.20; 'figure': 0.21; 'generous': 0.23; "one's": 0.23; 'code': 0.25; 'guess': 0.26; 'code.': 0.26; "i'm": 0.27; 'problem': 0.28; 'print': 0.29; 'from:addr:web.de': 0.30; 'chris': 0.32; 'dependent': 0.32; 'yet': 0.32; 'sort': 0.33; 'there': 0.33; 'to:addr:python-list': 0.33; "i've": 0.34; 'done': 0.34; 'here,': 0.35; 'header:X-Complaints-To:1': 0.35; 'thank': 0.35; 'problem.': 0.36; 'another': 0.37; 'things,': 0.37; 'but': 0.37; 'received:org': 0.38; 'largely': 0.38; 'some': 0.38; 'subject:: ': 0.39; 'header:Mime-Version:1': 0.39; 'to:addr:python.org': 0.39; "i'd": 0.40; 'might': 0.40; 'ever': 0.65; 'low': 0.73; 'secret': 0.82; 'case?': 0.84; 'trees.': 0.84; 'trick.': 0.84; 'complexity': 0.93
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Peter Otten <__peter__@web.de>
Subject Re: Unpickle error -- "object has no attribute ...."
Date Tue, 30 Aug 2011 16:21:27 +0200
Organization None
References <45c360d7-899d-4496-88dc-2112979f36ab@eb1g2000vbb.googlegroups.com> <j3fkii$umf$1@solani.org> <cc220fc9-ebc8-4741-ba1e-0ea299abae8d@fv14g2000vbb.googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding 7Bit
X-Gmane-NNTP-Posting-Host p50849f43.dip.t-dialin.net
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
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.573.1314714080.27778.python-list@python.org> (permalink)
Lines 23
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1314714080 news.xs4all.nl 2487 [2001:888:2000:d::a6]:55743
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:12439

Show key headers only | View raw


luvspython wrote:

> THANK YOU!  Special-casing "__dict__" did the trick.  Not sure I'd
> have ever figured that out, which leads to a different question:
> 
> I can figure out most things, though perhaps very slowly and
> painfully, if I can trace through code.  I use WingIDE (love it), but
> the execution
> of the C code is of course hidden, which helped stymie on this
> problem.  Is there another tool y'all might use and you can suggest
> that deals with that problem and would have helped me with this case?
> Or is one's ability to figure out this sort of problem largely
> dependent on really understanding the system's internals?

I'm with Chris here, I make do with some understanding of Python and a 
generous amount of print statements. My other secret weapon is that I try to 
keep the complexity of my code low ;)

As Python is yet another C program you can of course step through its code 
(debug build) with an appropriate debugger, but I've never done that. My 
guess is that you wouldn't have seen the forest for the trees.

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Unpickle error -- "object has no attribute ...." luvspython <srehtvandy@gmail.com> - 2011-08-28 17:00 -0700
  Re: Unpickle error -- "object has no attribute ...." Peter Otten <__peter__@web.de> - 2011-08-29 11:02 +0200
    Re: Unpickle error -- "object has no attribute ...." luvspython <srehtvandy@gmail.com> - 2011-08-29 09:22 -0700
      Re: Unpickle error -- "object has no attribute ...." Chris Angelico <rosuav@gmail.com> - 2011-08-30 04:27 +1000
      Re: Unpickle error -- "object has no attribute ...." Peter Otten <__peter__@web.de> - 2011-08-30 16:21 +0200

csiph-web