a few extensions for the itertools
Mathias Panzenboeck
e0427417 at student.tuwien.ac.at
Mon Nov 20 03:56:20 EST 2006
Carl Banks wrote:
> Paul McGuire wrote:
>> "Mathias Panzenboeck" <e0427417 at student.tuwien.ac.at> wrote in message
>> news:4560bfb0$0$10578$3b214f66 at tunews.univie.ac.at...
>>> I wrote a few functions which IMHO are missing in python(s itertools).
>>>
>>> You can download them here:
>>> http://sourceforge.net/project/showfiles.php?group_id=165721&package_id=212104
>>>
>>> A short description to all the functions:
>>>
>> Just a couple of questions:
>>
>>> iproduct(iterable, start=0) -> value
>>> Returns the product of the elements of a iterable
>>> times the value of parameter 'start'. When the
>>> iterable is empty, returns start.
>>>
>> Wouldn't 1 be a better default value for start?
>
> I concur; start should default to 1.
>
Bug in the documentation, not in the function. ;)
More information about the Python-list
mailing list