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

From John Gordon <gordon@panix.com>
Newsgroups comp.lang.python
Subject Re: a couple of questions: pickling objects and strict types
Date 2013-04-05 19:27 +0000
Organization PANIX Public Access Internet and UNIX, NYC
Message-ID <kjn8j2$6kr$1@reader1.panix.com> (permalink)
References <mailman.159.1365188823.3114.python-list@python.org>

Show all headers | 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