Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!feeder.erje.net!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; 'subject:object': 0.07; 'python': 0.08; 'subject:error': 0.10; 'am,': 0.12; 'debugging': 0.13; 'debugger,': 0.16; 'debugging,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; "system's": 0.16; 'wingide': 0.16; 'wrote:': 0.16; 'received:209.85.210.174': 0.18; 'received:mail-iy0-f174.google.com': 0.18; 'trace': 0.18; 'suggest': 0.20; 'figure': 0.21; 'bonus': 0.21; 'header:In-Reply- To:1': 0.22; 'tue,': 0.23; "one's": 0.23; 'though.': 0.23; 'aug': 0.24; 'code': 0.25; 'ignore': 0.26; 'code.': 0.26; 'tools,': 0.28; 'problem': 0.28; 'message-id:@mail.gmail.com': 0.29; 'print': 0.29; 'environment.': 0.30; 'dependent': 0.32; 'value.': 0.32; 'does': 0.32; 'sort': 0.33; 'there': 0.33; 'to:addr:python-list': 0.33; 'problem.': 0.36; 'problems': 0.36; 'another': 0.37; 'things,': 0.37; 'using': 0.37; 'but': 0.37; 'largely': 0.38; 'received:google.com': 0.38; 'received:209.85': 0.38; 'subject:: ': 0.39; 'manually': 0.39; 'to:addr:python.org': 0.39; "i'd": 0.40; 'might': 0.40; "it's": 0.40; 'your': 0.61; 'ever': 0.65; 'yourself': 0.67; '30,': 0.74; 'case?': 0.84; 'doubt,': 0.84; 'technically': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=Qc7R8wyGunH+QSpIICQWslxYII8uBFJr7k4GPpGvKMM=; b=eNbzFWjxhRdcL7+7omrULySmmqXhm2NPJ2ZXQDj43Doyf3hGWYT3taniRWXRaE7boa PI4jZNQI38PNvz8h2fdi3CgqdchhY+igPudKlWu2b/+vdEEYaHbFsihyLeT3kKGENLMy L3PIB3TzLRxX0krwQq4AS4p63T3FlaIewrQQs= MIME-Version: 1.0 In-Reply-To: References: <45c360d7-899d-4496-88dc-2112979f36ab@eb1g2000vbb.googlegroups.com> Date: Tue, 30 Aug 2011 04:27:14 +1000 Subject: Re: Unpickle error -- "object has no attribute ...." From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: 21 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1314642437 news.xs4all.nl 2517 [2001:888:2000:d::a6]:40994 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:12415 On Tue, Aug 30, 2011 at 2:22 AM, luvspython wrote: > I can figure out most things, though perhaps very slowly and > painfully, if I can trace through code. =A0I use WingIDE (love it), but > the execution > of the C code is of course hidden, which helped stymie on this > problem. =A0Is 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