In article <[email protected]>,
Emmanuel Surleau <[email protected]> wrote:
>On Sunday 19 April 2009 19:37:59 Gabriel Genellina wrote:
>> En Sun, 19 Apr 2009 13:43:10 -0300, Emmanuel Surleau
>> <[email protected]> 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 ([email protected]) <*> 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