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,
> > $ 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
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'
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
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
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
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
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_"
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
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
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
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
12 matches
Mail list logo