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


Groups > comp.lang.python > #42847

Re: a couple of questions: pickling objects and strict types

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 <gordon@panix.com>
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 <kjn8j2$6kr$1@reader1.panix.com> (permalink)
References <mailman.159.1365188823.3114.python-list@python.org>
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

Show key headers only | View raw


In <mailman.159.1365188823.3114.python-list@python.org> "Littlefield, Tyler" <tyler@tysdomain.com> 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"

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


Thread

a couple of questions: pickling objects and strict types "Littlefield, Tyler" <tyler@tysdomain.com> - 2013-04-05 12:59 -0600
  Re: a couple of questions: pickling objects and strict types John Gordon <gordon@panix.com> - 2013-04-05 19:27 +0000
  Re: a couple of questions: pickling objects and strict types Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-04-05 20:30 +0000
    Re: a couple of questions: pickling objects and strict types "Littlefield, Tyler" <tyler@tysdomain.com> - 2013-04-05 18:18 -0600
      Re: a couple of questions: pickling objects and strict types Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-04-06 02:37 +0000
        Re: a couple of questions: pickling objects and strict types Chris Angelico <rosuav@gmail.com> - 2013-04-06 13:49 +1100
        Re: a couple of questions: pickling objects and strict types Dave Angel <davea@davea.name> - 2013-04-05 23:22 -0400
        Re: a couple of questions: pickling objects and strict types mblume <foobar@invalid.invalid> - 2013-04-06 10:30 +0000

csiph-web