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

2006-04-04 Thread Walter Dörwald
Peter Hansen wrote: > Felipe Almeida Lessa wrote: >> $ pwd >> /usr/lib/python2.4/site-packages >> $ grep -re klass . | wc -l >> 274 >> $ grep -re class_ . | wc -l >> 897 > > How many of those "class_" instances are really just substrings of > "__class__" and "class_name" and such? On my machine,

Re: markup.py - 1.2 - an HTML/XML generator

2006-04-04 Thread Daniel Nogradi
> > $ pwd > > /usr/lib/python2.4/site-packages > > $ grep -re klass . | wc -l > > 274 > > $ grep -re class_ . | wc -l > > 897 > > How many of those "class_" instances are really just substrings of > "__class__" and "class_name" and such? On my machine, I see a handful > in the standard library, an

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

2006-04-03 Thread Robert Kern
Felipe Almeida Lessa wrote: > Em Seg, 2006-04-03 às 17:20 -0700, Erik Max Francis escreveu: > >>Felipe Almeida Lessa wrote: >> >> >>>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'

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

2006-04-03 Thread Peter Hansen
Felipe Almeida Lessa wrote: > $ pwd > /usr/lib/python2.4/site-packages > $ grep -re klass . | wc -l > 274 > $ grep -re class_ . | wc -l > 897 How many of those "class_" instances are really just substrings of "__class__" and "class_name" and such? On my machine, I see a handful in the standard

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

2006-04-03 Thread Felipe Almeida Lessa
Em Seg, 2006-04-03 às 17:20 -0700, Erik Max Francis escreveu: > Felipe Almeida Lessa wrote: > > > 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... > > A quick

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

2006-04-03 Thread Scott David Daniels
Erik Max Francis wrote: > Felipe Almeida Lessa wrote: > >> 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... > > A quick Google Groups search indicates that `kla

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

2006-04-03 Thread Erik Max Francis
Felipe Almeida Lessa wrote: > 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... A quick Google Groups search indicates that `klass` is more commonly mentioned tha

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

2006-04-03 Thread Felipe Almeida Lessa
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_"

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

2006-04-03 Thread Jorge Godoy
Robert Kern <[EMAIL PROTECTED]> writes: > Why not "klass"? I was going to ask the same thing but I thought it was just me being too tired to find it "ugly" or "bad choice"... :-) -- Jorge Godoy <[EMAIL PROTECTED]> "Quidquid latine dictum sit, altum sonatur." - Qualquer coisa dita em latim

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

2006-04-03 Thread Robert Kern
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"? -- Robert Kern [EMAIL PROTECTED] "I have come to belie

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

2006-04-03 Thread Felipe Almeida Lessa
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_"? -- Felipe. -- http://mail.python.org/mailman/listinfo/python-list

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

2006-04-03 Thread Daniel Nogradi
A new release of markup.py is available at the sourceforge project page: http://sourceforge.net/projects/markup/ Markup.py is a set of classes that attempts to make it easier to generate HTML/XML from a Python program in an intuitive, light-weight, customizable and pythonic way. Full documentatio