Are threads bad? - was: Future of Pypy?

Paul Rubin no.email at nospam.invalid
Tue Feb 24 01:23:46 EST 2015


Chris Angelico <rosuav at gmail.com> writes:
> Actually, you can quite happily have multiple threads messing with the
> underlying file descriptors,... The problem is *buffers* for stdin
> and stdout, where you have to be absolutely sure that you're not
> trampling all over another thread's data structures.

Oh ok, sure, yeah, the distinction is valid.  I guess the classic
interleaved "print 'a'" "print 'b'" loops could crash if the stdio
structures get corrupted through conflicting updates somehow.



More information about the Python-list mailing list