<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/whrandom.py, branch v2.1.2</title>
<subtitle>Python interpreter</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/whrandom.py?h=v2.1.2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/whrandom.py?h=v2.1.2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2001-01-15T03:34:38Z</updated>
<entry>
<title>Whitespace normalization.  Top level of Lib now fixed-point for reindent.py!</title>
<updated>2001-01-15T03:34:38Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-01-15T03:34:38Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e119006e7dc0df0a5ff6b60764b2ce3cd9477688'/>
<id>urn:sha1:e119006e7dc0df0a5ff6b60764b2ce3cd9477688</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Line-wrap and properly indent a couple of docstrings.</title>
<updated>2000-06-30T19:33:35Z</updated>
<author>
<name>Fred Drake</name>
<email>fdrake@acm.org</email>
</author>
<published>2000-06-30T19:33:35Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=0412e494b86c9b45fb57aad9bf741c8cae8046f9'/>
<id>urn:sha1:0412e494b86c9b45fb57aad9bf741c8cae8046f9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Simple changes by Gerrit Holl - move author acknowledgements out of</title>
<updated>2000-02-28T15:12:25Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2000-02-28T15:12:25Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=98d9fd3e68075ce6fe7642ed8793c1abee69edf6'/>
<id>urn:sha1:98d9fd3e68075ce6fe7642ed8793c1abee69edf6</id>
<content type='text'>
docstrings into comments.
</content>
</entry>
<entry>
<title>The third and final doc-string sweep by Ka-Ping Yee.</title>
<updated>2000-02-04T15:28:42Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2000-02-04T15:28:42Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e7b146fb3bdca62a0d5ecc06dbf3348e5a4fe757'/>
<id>urn:sha1:e7b146fb3bdca62a0d5ecc06dbf3348e5a4fe757</id>
<content type='text'>
The attached patches update the standard library so that all modules
have docstrings beginning with one-line summaries.

A new docstring was added to formatter.  The docstring for os.py
was updated to mention nt, os2, ce in addition to posix, dos, mac.
</content>
</entry>
<entry>
<title>Fixed a few lines that tabnanny complained about (one space before the</title>
<updated>1998-08-10T20:07:53Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>1998-08-10T20:07:53Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=cc221c470fc51ab318ed3976119ab51c12a1d01c'/>
<id>urn:sha1:cc221c470fc51ab318ed3976119ab51c12a1d01c</id>
<content type='text'>
tabs).
</content>
</entry>
<entry>
<title>Introducing randrange([start,] stop [,step]) -- same as</title>
<updated>1998-07-31T13:39:44Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>1998-07-31T13:39:44Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=187f154243eb43b2d81f9b253458a16880e1b0bb'/>
<id>urn:sha1:187f154243eb43b2d81f9b253458a16880e1b0bb</id>
<content type='text'>
choice(range(start, stop, step)) but faster.  This addresses the
problem that randint() was accidentally defined as taking an inclusive
range (how unpythonic).

The code is longish because Tim Peters insisted that it reject
non-integral arguments while I insisted that it be not much slower
than randint(); the compromise satisfies both but is somewhat
convoluted.

Also changed randint() to be implemented through randrange().  This is
a semantic change because old randint() didn't test its arguments for
validity.  (It also makes randrange() win any contest with randint()
:-)
</content>
</entry>
<entry>
<title>Add comments explaining thread unsafety of this code.</title>
<updated>1998-05-29T17:51:59Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>1998-05-29T17:51:59Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=cc20b76ad00d5932eda124a49818c0af4265d3d4'/>
<id>urn:sha1:cc20b76ad00d5932eda124a49818c0af4265d3d4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Andrew Kuchling writes:</title>
<updated>1998-02-16T14:52:42Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>1998-02-16T14:52:42Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=358473c1a2a692a496bbbeca330c1e4d52fc78b0'/>
<id>urn:sha1:358473c1a2a692a496bbbeca330c1e4d52fc78b0</id>
<content type='text'>
First, the RNG in whrandom.py sucks if you let it seed itself from the time.
The problem is the line:
			t = int((t&amp;0xffffff) | (t&gt;&gt;24))
Since it ORs the two parts together, the resulting value has mostly
ON bits.  Change | to ^, and you don't lose any randomness.
</content>
</entry>
<entry>
<title>Two improvements suggested by Tim Peters: speed up random() since we</title>
<updated>1997-07-10T15:14:50Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>1997-07-10T15:14:50Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d247812521c2f020093d98807da3bcc39e233581'/>
<id>urn:sha1:d247812521c2f020093d98807da3bcc39e233581</id>
<content type='text'>
know Python integers are at least 32 bits long; and avoid zeros in
initial seed value.
</content>
</entry>
<entry>
<title>Properly parenthesize a long Boolean combination.  Formerly, you could</title>
<updated>1997-01-02T18:13:35Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>1997-01-02T18:13:35Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=6757748641b45fa9c51dd58b5315628bf7744b22'/>
<id>urn:sha1:6757748641b45fa9c51dd58b5315628bf7744b22</id>
<content type='text'>
pass invalid seed values.
</content>
</entry>
</feed>
