Message197847
> Georg Brandl added the comment:
>
> I would propose a leading underscore for these methods; they should make it clear to the user that the parameter is meant to be "private".
+1 to this proposal.
This style is present with randrange, randbelow and shuffle.
> With this line in the docstring, I would wonder "Why is the argument there in the first place?!" (because most people don't know about the optimization technique).
This style has been present since the introduction of these functions.
One attempt to clarify / cleanup shuffle here is: 29430:b80a22250e4f
Georg : I am unaware of the optimization technique you refer to as
well, it will helpful if you could point to any resource. |
|
Date |
User |
Action |
Args |
2013-09-16 00:06:06 | orsenthil | set | recipients:
+ orsenthil, georg.brandl, rhettinger, smichr, eric.araujo, sandro.tosi, python-dev, michael.driscoll |
2013-09-16 00:06:06 | orsenthil | link | issue14927 messages |
2013-09-16 00:06:06 | orsenthil | create | |
|