In article <mailman.4175.1240166489.11746.python-l...@python.org>,
Emmanuel Surleau  <emmanuel.surl...@gmail.com> wrote:
>On Sunday 19 April 2009 19:37:59 Gabriel Genellina wrote:
>> En Sun, 19 Apr 2009 13:43:10 -0300, Emmanuel Surleau
>> <emmanuel.surl...@gmail.com> escribi=F3:
>>> 
>>> On an unrelated note, it would be *really* nice to have a length
>>> property on strings. Even Java has that!
>>
>> Why would it be nice to have? I never missed it...
>
>First off, it's pretty commonplace in OO languages.

What makes you think Python is "an OO language"?  What kind of OO
language allows you to do this:

def square(x):
    return x*x

for i in range(10):
    print square(x)
-- 
Aahz (a...@pythoncraft.com)           <*>         http://www.pythoncraft.com/

"If you think it's expensive to hire a professional to do the job, wait
until you hire an amateur."  --Red Adair
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to