Syntax error [was: Installed modules list?]
John J. Lee
phrxy at csv.warwick.ac.uk
Fri Apr 20 12:39:50 EDT 2001
On Fri, 20 Apr 2001, Jeremy Hylton wrote:
> >>>>> "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.
Ah well; Python isn't Perl I guess, and thank Guido for that.
:)
John
More information about the Python-list
mailing list