[Python-Dev] Possible bug in randint when importing pylab?

2010-08-19 Thread Timothy Kinney
I am getting some unexpected behavior in Python 2.6.4 on a WinXP SP3 box. If I run the following: [code] from pylab import randint for s in range(100): print randint(0,1) [/code] I get 100 zeroes. If I import randint from random instead, I get the expected behavior of a random

Re: [Python-Dev] Possible bug in randint when importing pylab?

2010-08-19 Thread Amaury Forgeot d'Arc
Hi, 2010/8/19 Timothy Kinney timothyjkin...@gmail.com: I am getting some unexpected behavior in Python 2.6.4 on a WinXP SP3 box. This mailing list is for development *of* python, not about development *with* python. Your question should be directed to the comp.lang.python newsgroup, or the

Re: [Python-Dev] Possible bug in randint when importing pylab?

2010-08-19 Thread David Cournapeau
On Fri, Aug 20, 2010 at 1:02 AM, Amaury Forgeot d'Arc amaur...@gmail.com wrote: Hi, 2010/8/19 Timothy Kinney timothyjkin...@gmail.com: I am getting some unexpected behavior in Python 2.6.4 on a WinXP SP3 box. This mailing list is for development *of* python, not about development *with*

Re: [Python-Dev] Possible bug in randint when importing pylab?

2010-08-19 Thread Mark Dickinson
On Thu, Aug 19, 2010 at 7:11 AM, Timothy Kinney timothyjkin...@gmail.com wrote: I am getting some unexpected behavior in Python 2.6.4 on a WinXP SP3 box. If I run the following: [code] from pylab import randint for s in range(100):    print randint(0,1) [/code] I get 100 zeroes. If I