random number generator thread safety

2005-11-08 Thread Mike Brown
I have questions about thread safety in the 'random' module. When using the random.Random class (be it Mersenne Twister or Wichmann-Hill based), is it sufficiently thread-safe (preserving entropy and guarding against attack) to just have each thread work with its own random.Random instance? Or

Re: random number generator thread safety

2005-11-08 Thread Mike Brown
Raymond Hettinger wrote: Mike Brown wrote: I have questions about thread safety in the 'random' module. When using the random.Random class (be it Mersenne Twister or Wichmann-Hill based), is it sufficiently thread-safe (preserving entropy and guarding against attack) to just have each

Re: Jesus said, I am the way, the truth and the life: no one can come to the Father(God)(in Heaven), but by me. (John 14:6) This means that if you die without trusting in Jesus Christ as your Lord and Saviour you will die in your sins and be forever sepa

2005-05-15 Thread Mike brown
In article [EMAIL PROTECTED], Bubba [EMAIL PROTECTED] wrote: I'm so glad you've decided what everyone believes Some of us don't. Believe that is. In anything in particular. MJRB -- http://mail.python.org/mailman/listinfo/python-list

Re: Jesus said, I am the way, the truth and the life: no one can come to the Father(God)(in Heaven), but by me. (John 14:6) This means that if you die without trusting in Jesus Christ as your Lord and Saviour you will die in your sins and be forever sepa

2005-05-12 Thread Mike brown
I don't give a feather or a fig. MJRB -- http://mail.python.org/mailman/listinfo/python-list

Re: Ron Grossi: God is not a man

2005-04-30 Thread Mike brown
Just go away from RMMGA -- http://mail.python.org/mailman/listinfo/python-list

Re: Ron Grossi: God is not a man

2005-04-28 Thread Mike brown
4) I doubt seriously whether God plays a guitar, since guitars are made by men, for men. His Son could theoretically play a guitar. Perhaps He does. Perhaps He doesn't. Only the Father and His Holy Angels know. Perlse. Do you really take this stuf seriously ? It's like the ancient

Re: Do You Want To Know For Sure That You Are Going To Heaven? The reason some people don't know for sure if they are going to Heaven when they die is because they just don't know. The good news is that you can know for sure that you are going to Heaven wh

2005-04-18 Thread Mike brown
In article [EMAIL PROTECTED], thesonoftruth [EMAIL PROTECTED] wrote: I wonder if anyone yells VISHNU !! VISHNU ! when making out, I might have. It's been so long that I've forgotten. MJRB -- http://mail.python.org/mailman/listinfo/python-list

unicode surrogates in py2.2/win

2005-03-07 Thread Mike Brown
In mid-October 2004, Jeff Epler helped me here with this string iterator: def chars(s): This generator function helps iterate over the characters in a string. When the string is unicode and a surrogate pair is encountered, the pair is returned together, regardless of whether

unicode(obj, errors='foo') raises TypeError - bug?

2005-02-22 Thread Mike Brown
This works as expected (this is on an ASCII terminal): unicode('asdf\xff', errors='replace') u'asdf\ufffd' This does not work as I expect it to: class C: ... def __str__(self): ... return 'asdf\xff' ... o = C() unicode(o, errors='replace') Traceback (most recent call last): File