Oscar> On Sunday 30 November 2003 19:50, Skip Montanaro wrote:
>> How about you allow both keyword args and an explicit attribute dict?
>> That way, for the oddball stuff which clashes with Python syntax you
>> go the extra step and use the dictionary, but for normal usage,
>> keyword args do just fine:
>>
>> htmltag('input', type='text', size=20, maxlength=40)
>> htmltag('textarea', rows=30, cols=80)
>> htmltag('body', bgcolor='#fff', attrs={'class': 'mainpage'})
>>
Oscar> I miss something or may be i haven't understood nothing.
Oscar> Have you tested all this stuff with the last html.py patch
Oscar> proposed? I think all of these examples are already supported.
I haven't tested any of this. I was responding to Greg's note where it
suggested that a bunch of keyword args which were eliminated were actually
rather convenient.
Oscar> Maybe you are talking about widget instead of htmltag.
Yes, probably.
Skip