setattr question
Fredrik Lundh
fredrik at pythonware.com
Thu Mar 2 15:58:21 EST 2006
Gerard Flanagan wrote:
> I have the following code:
>
> #### builder.py #########
> class HtmlBuilder(object):
>
> @staticmethod
> def page(title=''):
> return HtmlPage(title)
>
> @staticmethod
> def element(tag, text=None, **attribs):
> return HtmlElement(tag, text, **attribs)
>
> @staticmethod
> def literal(text):
> return HtmlLiteral(text)
just curious, but what's the purpose of this class, and what gave
you the idea to structure your program in this way ?
</F>
More information about the Python-list
mailing list