[Python-Dev] Re: copy, len and the like as 'object' methods?

Michael Hudson mwh@python.net
24 Aug 2001 14:11:53 -0400

Paul Prescod <paulp@ActiveState.com> writes:

> > Would you also argue for [1, 2, 3].repr() and "abc".hash()?
> Yes. But hashing and repring are done much less often than taking the
> length.

Note that this is an argument for keeping len(o) over o.len() - at
least you bump into it early.

Reminds me of what Laura Creighton said about the results of her
case-sensitivity survey.


  First of all, email me your AOL password as a security measure. You
  may find that won't be able to connect to the 'net for a while. This
  is normal. The next thing to do is turn your computer upside down
  and shake it to reboot it.                     -- Darren Tucker, asr