The Python standard library and PEP8
Aahz
aahz at pythoncraft.com
Sun Apr 19 16:46:23 EDT 2009
In article <mailman.4175.1240166489.11746.python-list at python.org>,
Emmanuel Surleau <emmanuel.surleau at 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.surleau at 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 (aahz at 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
More information about the Python-list
mailing list