[Tutor] stuck with html table

Eugene Leitl Eugene.Leitl@lrz.uni-muenchen.de
Wed, 30 May 2001 15:05:48 +0200 (MET DST)


On Wed, 30 May 2001 alan.gauld@bt.com wrote:

> Indented def? Implies you are on 2.1 since nested
> functions are iffy (IMHO) in earlier versions...

Yep, and thanks for reminding me. Result will have
to run on 1.5.2, so I have to change it then.

> Since I can't really see a goiod reason to use
> them here why not just dedent the nrested functions?
>
> >     return result1 + "</tr>"
>
> Here's the line that returns the /tr
> result is not being changed from the initial ""
> up to this point. I think this line should be
> indented to be the return value of then nrested
> function???

I'm not sure what nrested is, but I'm using local functions as mnemonics
to increase code readability.

> I really don't like nested functions much,
> unless its for functions that return functions
> and for those I'd prefer a real lambda
> - see a previous post! :-)

I know what lambdas are, but I'm very sketchy with text formatting on
Python yet, and I don't want extra long lines sticking out.