Re: [Tutor] Compile Only

2005-01-27 Thread Kent Johnson
If your program is written so it doesn't do anything when imported, you could use > python -c "import myprogram" myprogram.py should have a structure like this: def main(): # do something... if __name__ == '__main__': main() The "if __name__ ..." prevents the module from doing anything when i

[Tutor] Compile Only

2005-01-27 Thread jhomme
-Original message- From: "Alan Gauld" [EMAIL PROTECTED] Date: Thu, 27 Jan 2005 05:08:07 -0500 To: "Chad Crabtree" [EMAIL PROTECTED] Subject: Re: [Tutor] Syntax Check > > Does anyone happen to know how to turn of the syntax checking in > > python? I've been working on a module driven prep