Coding style

Volker Grabsch volker_grabsch at v.notjusthosting.com
Tue Jul 18 13:09:33 EDT 2006


Bruno Desthuilliers <onurb at xiludom.gro> schrieb:
> PTY wrote:
>> I was asking whether it was better style to
>> use len() or not.
>
> FWIW, it's also more generic (you could have an object supporting
> pop() but not __len__()), less error-prone,

While I agree with all other points, I don't think that it's less
error-prone. See my other posting where I worked out this a flaw
of Python.


Greets,

    Volker

-- 
Volker Grabsch
---<<(())>>---
Administrator
NotJustHosting GbR



More information about the Python-list mailing list