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
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
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
I don't give a feather or a fig.
MJRB
--
http://mail.python.org/mailman/listinfo/python-list
Just go away from RMMGA
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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