Newbie here... getting a count of repeated instances in a list.

Peter Otten __peter__ at web.de
Sat Nov 22 06:31:01 EST 2003


Peter Otten wrote:

> def filter_domains(domains, threshold=10):
>     "The <threshold> most frequent domains in alphabetical order"

Oops, above is an involuntary example of a bad docstring :-(
Should rather be

"Domains with threshold or more occurences in alphabetical (case-sensitive)
order"


Peter




More information about the Python-list mailing list