Subclassing list, what special methods do this?

Terry Reedy tjreedy at udel.edu
Sat Jun 14 14:45:32 EDT 2008


"Matimus" <mccredie at gmail.com> wrote in message 
news:20149773-a485-4762-b3d0-f5be948df1b0 at 27g2000hsf.googlegroups.com...
| So, it looks like as long as you want to subclass list, you are stuck
| implementing both __*slice__ and __*item__ methods.

Unless writing in 3.0, where they have finally disappeared. 






More information about the Python-list mailing list