[Tutor] Komodo
Lloyd Kvam
pythonTutor at venix.com
Fri Aug 20 17:56:28 CEST 2004
Importing your code checks the syntax. It does actually execute your
module, but if the working code is protected by
if __name__ == '__main__':
then your functions and classes will not get invoked.
pychecker is included with the recent Python distributions. It checks
your code for inconsistent usage. The old C lint utility did the same
for C programs before the C language syntax was tightened to allow the
compiler to catch most problems.
On Fri, 2004-08-20 at 10:45, Mike Hansen wrote:
> I just upgraded from Activestate's Komodo 2.5.2 to 3.0. I really like
> the new code browser. For Python programs it shows all the functions,
> global variables, and imports in one pane/frame. When you click on a
> function in that pane/frame, the doc string for the function appears in
> another pane/frame and the editor jumps to that function. Very cool. I
> think Scite does some of this, but I don't know if Scite does code
> completion or syntax checking. Anyone know?
>
> Speaking of syntax checking, is there a tool that checks your syntax in
> Python without having to run the code. In Perl, you can do Perl -c
> yourprogram.pl, and it will give you the syntax errors. Although Komodo
> has syntax checking built in, I sometimes do some Python development on
> OSX. There doesn't seem to be an OSX port of Komodo, so I'd need
> something else to check the syntax of a Python program.
>
> Mike
> _______________________________________________
> Tutor maillist - Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
--
Lloyd Kvam
Venix Corp.
1 Court Street, Suite 378
Lebanon, NH 03766-1358
voice: 603-653-8139
fax: 801-459-9582
More information about the Tutor
mailing list