Paul Rubin wrote: > Antoon Pardon <[EMAIL PROTECTED]> writes: >> repeat(object[, times]) >> Make an iterator that returns object over and over again. Runs >> indefinitely unless the times argument is specified. ... >> >> My first impression from this, is that it is possible to call >> this as follows: >> repeat(None, times = 5) >> But that doesn't work either. > > The code and/or doc is wrong, you have to use a positional arg > and not a named one. repeat(None, 5) does the right thing.
This is an issue in most Python documentation: you're not told if the described function is implemented in C, and if it is keyword arg-enabled. The arguments must be given names though, to be able to document them. Georg -- http://mail.python.org/mailman/listinfo/python-list