At Monday 21/8/2006 12:03, Larry Bates wrote:
> I wrote a function that converts a tuple of tuples into html. For
> example:
> I'd like to know ways to make it better (more efficient, able to deal
> with enormous-size arguments, etc). How would I write this as a
> generator?
Before you put too
Matthew Wilson wrote:
> I'd like to know ways to make it better (more efficient, able to deal
> with enormous-size arguments, etc). How would I write this as a
> generator?
what makes you think that a generator would be the right tool for this
task? what's the use case?
(btw, generating "enor
Matthew Wilson wrote:
> I wrote a function that converts a tuple of tuples into html. For
> example:
>
> In [9]: x
> Out[9]:
> ('html',
> ('head', ('title', 'this is the title!')),
> ('body',
> ('h1', 'this is the header!'),
> ('p', 'paragraph one is boring.'),
>