[Tutor] how to get the return value?
seedseven at home.nl
seedseven at home.nl
Mon Mar 6 13:20:40 CET 2006
---- Anna Ravenscroft <annaraven at gmail.com> schrijft:
> On 3/5/06, ingo <ingoogni at cut.this.out.home.nl> wrote:
> >
> > in news:440B2B3E.6070407 at tds.net Kent Johnson wrote:
> > >>>>[...]
> > >>>
> > >>>main(printtime(strf=None))
> > >>>
> > >>>[...]
> > >>
> > >> Anna,
> > >>
> > >> that results in an syntax error / invalid syntax
> > >
> > > It's very helpful to show the actual error and traceback.
> > >
> >
> > Sorry, here it is:
> >
> > File "D:\Ingo\PyScript\VIDEOC~1.9\_ij\_time_lapse.py", line 23
> > def main(printtime(strf=None)):
> > ^
> > SyntaxError: invalid syntax
>
>
>
> Yep. I was suggesting calling printtime as part of your *call* to main, not
> when you define main. Sorry to be unclear.
>[...]
> Hope that makes more sense.
>
Ah, that makes more sense, I'll play a bit with it,
Thanks,
Ingo
More information about the Tutor
mailing list