[ANN] markup.py - 1.2 - an HTML/XML generator

Felipe Almeida Lessa felipe.lessa at gmail.com
Mon Apr 3 20:04:25 EDT 2006


Em Seg, 2006-04-03 às 17:57 -0500, Robert Kern escreveu:
> Felipe Almeida Lessa wrote:
> > Em Ter, 2006-04-04 às 00:09 +0200, Daniel Nogradi escreveu:
> > [snip]
> > 
> >>page.ul.open( klass='mylist' )
> >>page.li( items, klass='myitem' )
> > 
> > [/snip]
> > 
> > "klass"? Why not "cls" or "class_"?
> 
> Why not "klass"?

IMHO, it's strange and ugly. Besides, AFAIK everybody uses "cls" or
"class_", this is the first place I see "klass", so this breaks
consistency, too. But that's just my opinion...

-- 
Felipe.




More information about the Python-list mailing list