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


Groups > comp.lang.python > #12415

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

References <45c360d7-899d-4496-88dc-2112979f36ab@eb1g2000vbb.googlegroups.com> <j3fkii$umf$1@solani.org> <cc220fc9-ebc8-4741-ba1e-0ea299abae8d@fv14g2000vbb.googlegroups.com>
Date 2011-08-30 04:27 +1000
Subject Re: Unpickle error -- "object has no attribute ...."
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.551.1314642437.27778.python-list@python.org> (permalink)

Show all headers | View raw


On Tue, Aug 30, 2011 at 2:22 AM, luvspython <srehtvandy@gmail.com> wrote:
> 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?

In terms of debugging, it's hard to ignore the old favorite stand-by:
If In Doubt, Print It Out. Pepper your code with console-output calls
and manually trace your code using those. Every other debugging tool
you'll ever use is a bonus on top of that; if you accustom yourself to
IIDPIO debugging, you'll be able to solve problems in any environment.

Python does have a number of other debugging tools, though. I'd
recommend looking at pylint, for a start. It's not technically a
debugger, but it may be of value.

ChrisA

Back to comp.lang.python | Previous | NextPrevious in thread | Next 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