Syntax error [was: Installed modules list?]

Jeremy Hylton jeremy at digicool.com
Fri Apr 20 12:35:59 EDT 2001


>>>>> "JJL" == John J Lee <phrxy at csv.warwick.ac.uk> writes:

  JJL> On Fri, 20 Apr 2001, Jeremy Hylton wrote:
  >> You can only join simple statements with a semicolon.  None of
  >> the statements that use colons between parts are simple
  >> statements.

  JJL> Is there any way to work around this for the purpose of simple
  JJL> unix scripts using python -c, then?  Other than putting the
  JJL> python in a separate file, of course.

I don't think there's anyway to abuse -c to accept compound
statements.  A separate file is your only recourse.

Jeremy









More information about the Python-list mailing list