[Python-de] count() mit eigenem Listentyp
Andreas Pakulat
apaku at gmx.de
Die Jan 3 10:53:33 CET 2006
On 03.01.06 01:48:03, Christian Tismer wrote:
> Andreas Pakulat wrote:
> >class MyList(list):
> > def __init__(self):
> > list.__init__(self)
> >l = MyList()
> >print l.count()
>
> >>> print l.count.__doc__
> L.count(value) -> integer -- return number of occurrences of value
> >>>
Hmm, haett ich bloss mal in mein schlaues Buechlein geguckt :-)
Andreas
--
Your boss is a few sandwiches short of a picnic.