A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2001-August/017279.html below:

copy, len and the like as 'object' methods?

[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.

Cheers,
M.

-- 
  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



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4