Why no list heritable type?

Sion Arrowsmith siona at chiark.greenend.org.uk
Fri Dec 17 06:37:21 EST 2004


In article <86vfb13jpl.fsf at guru.mired.org>, Mike Meyer  <mwm at mired.org> wrote:
>And before Python 2.2 there was the UserList class in the standard
>library. Which is still there in 2.4. Shouldn't it be depreciated by
>this point?

Apart from compatibility issues as mentioned in the UserList
documentation, deriving from it will give you a classic class,
whereas deriving from list will give you a new style class.
There may be circumstances under which this is important
(exercise left to more twisted minds than mine). Same applies
to dict/UserDict.

-- 
\S -- siona at chiark.greenend.org.uk -- http://www.chaos.org.uk/~sion/
  ___  |  "Frankly I have no feelings towards penguins one way or the other"
  \X/  |    -- Arthur C. Clarke
   her nu becomeþ se bera eadward ofdun hlæddre heafdes bæce bump bump bump



More information about the Python-list mailing list