Re: what of count?

Guido.van.Rossum@cwi.nl
Tue, 28 Feb 1995 11:48:10 +0100

> Another newbee question: According to my Python documentation, the
> string module contains a function called count. According to my
> Python interpreter, it doesn't. What gives?

Strange -- the string module definitely does define a count()
function. Perhaps your Lib/string.py has been truncated, or it hasn't
been converted from Unix LF format to DOS/Windows CR-LF format (if
you're using a non-Unix platform)?

--Guido van Rossum, CWI, Amsterdam <mailto:Guido.van.Rossum@cwi.nl>
<http://www.cwi.nl/cwi/people/Guido.van.Rossum.html>