Mutable global state and threads

2017-01-06 Thread Kev Dwyer
r: I understand that sanity, mutable global state and threads are unlikely bedfellows and so promise never to try anything like this in production code). Cheers, Kev -- https://mail.python.org/mailman/listinfo/python-list

Re: Mutable global state and threads

2017-01-06 Thread Chris Angelico
possibly do mess with locking, but before I advise that, I'd have to see what you're trying to accomplish - toy examples are hard to mess with. Bear in mind that simple code like this can't actually benefit from threads, as Python (or at least, CPython) won't run two of t

Re: Mutable global state and threads

2017-01-03 Thread Chris Angelico
o mess with locking, but before I advise that, I'd have to see what you're trying to accomplish - toy examples are hard to mess with. Bear in mind that simple code like this can't actually benefit from threads, as Python (or at least, CPython) won't run two of them at once

Mutable global state and threads

2017-01-03 Thread Kev Dwyer
r: I understand that sanity, mutable global state and threads are unlikely bedfellows and so promise never to try anything like this in production code). Cheers, Kev -- https://mail.python.org/mailman/listinfo/python-list