Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!nntp.club.cc.cmu.edu!micro-heart-of-gold.mit.edu!bloom-beacon.mit.edu!panix!gordon From: John Gordon Newsgroups: comp.lang.python Subject: Re: a couple of questions: pickling objects and strict types Date: Fri, 5 Apr 2013 19:27:30 +0000 (UTC) Organization: PANIX Public Access Internet and UNIX, NYC Lines: 22 Message-ID: References: NNTP-Posting-Host: panix2.panix.com X-Trace: reader1.panix.com 1365190050 6811 166.84.1.2 (5 Apr 2013 19:27:30 GMT) X-Complaints-To: abuse@panix.com NNTP-Posting-Date: Fri, 5 Apr 2013 19:27:30 +0000 (UTC) User-Agent: nn/6.7.3 Xref: csiph.com comp.lang.python:42847 In "Littlefield, Tyler" writes: > Hello all: > I've been using Python for a while now, but I have one larger problem. > I come from a c++ background; though it doesn't help in catching runtime > errors, being able to compile a program helps catch a lot of syntax > errors. I know about pychecker, which is somewhat useful. Do people have > other methods for handling this? The py_compile module can catch some obvious syntax errors, such as incorrect indentation levels or a missing colon at the end of an if statement. But it won't catch other errors such as using a variable name before it's defined. For that, you can use an external program such as pylint or pyflakes. -- John Gordon A is for Amy, who fell down the stairs gordon@panix.com B is for Basil, assaulted by bears -- Edward Gorey, "The Gashlycrumb Tinies"