George Sakkis wrote: > class Container(object): > > class Sequence(Container):
> class Mapping(Container): > > Note that this does _not_ disallow duck typing; anyone is perfectly > free to define a method len() in a class that does not extend any of > the above so that a client can call x.len() successfully. What's the point, then? What benefit do I get from extending Sequence if I can achieve the same thing without bothering? -- Greg _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com