From: Jochen <jo...@un...> - 2002-08-22 23:28:17
|
On Mon, 19 Aug 2002 09:27:35 -0400 Todd Miller wrote: Todd> Jochen K=FCpper wrote: >> Also note the "strange" docstring of range: >> ,---- >> | range(...) >> | range([start,] stop[, step]) -> list of integers >> `---- >> pointing straight toward its behavior. Ok, reworked the docstrings of module RandomArray2 a bit in order to (hopefully) clarify these issues. I have attached a diff, if it is ok I'll check it in. >> So well, maybe someone with insight into RNG's can comment on the, >> mirroring issue? Anybody? Todd> It appears to me that the parameter order of randint again Todd> emulates "range". The fact that random_integers is not Todd> consistent with randint seem OK to me because random_integers Todd> appears to have been written expressly to tailor the calling Todd> sequence of randint. Put a comment about that in the docstring of random_integers. Greetings, Jochen --=20 University of North Carolina phone: +1-919-962-4403 Department of Chemistry phone: +1-919-962-1579 Venable Hall CB#3290 (Kenan C148) fax: +1-919-843-6041 Chapel Hill, NC 27599, USA GnuPG key: 44BCCD8E |