[issue9320] os.environ is global for threads

2010-07-22 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: I have to debug CGIHTTPServer test case that apparently uses threads, and I expected to find at least some pointer about what exactly a thread in Python is. I hope Python Manual is not only for system programmers. They do not need the

[issue9320] os.environ is global for threads

2010-07-22 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: I agree with Eric, Konstantin, Amaury and Georg. Closing for the third time. -- nosy: +skrah status: pending - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9320

[issue9320] os.environ is global for threads

2010-07-22 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9320 ___ ___

[issue9320] os.environ is global for threads

2010-07-22 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Anatoly, I don't think it is a good idea to use signatures in tracker comments. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9320 ___

[issue9320] os.environ is global for threads

2010-07-21 Thread anatoly techtonik
New submission from anatoly techtonik techto...@gmail.com: Seems like os.environ is shared between multiple threads. This should be documented at least in threading chapters. -- assignee: d...@python components: Documentation messages: 111013 nosy: d...@python, techtonik priority:

[issue9320] os.environ is global for threads

2010-07-21 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: I'm not sure where you'd put this. The defining characteristic of threads is that _all_ objects are shared among them. -- nosy: +eric.smith ___ Python tracker rep...@bugs.python.org

[issue9320] os.environ is global for threads

2010-07-21 Thread Konstantin Zemlyak
Konstantin Zemlyak z...@zartsoft.ru added the comment: Environment variables have always been process-wide. It doesn't deserve any special mention in threads documentation. -- nosy: +zart ___ Python tracker rep...@bugs.python.org

[issue9320] os.environ is global for threads

2010-07-21 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: On Wed, Jul 21, 2010 at 11:43 AM, Eric Smith rep...@bugs.python.org wrote: I'm not sure where you'd put this. The defining characteristic of threads is that _all_ objects are shared among them. Where is this defining characteristic of

[issue9320] os.environ is global for threads

2010-07-21 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: I'm not sure where you'd put this. The defining characteristic of threads is that _all_ objects are shared among them. Where is this defining characteristic of threads is described? in http://docs.python.org/library/thread.html

[issue9320] os.environ is global for threads

2010-07-21 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Closing in agreement with Eric/Amaury. -- nosy: +georg.brandl resolution: - works for me status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9320

[issue9320] os.environ is global for threads

2010-07-21 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: in http://docs.python.org/library/thread.html ...multiple threads of control sharing their global data space... That's how threads are understood in all programming languages. Do you mean this one? This module provides low-level

[issue9320] os.environ is global for threads

2010-07-21 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Quoting the wikipedia page: multiple threads within a process share state as well as memory and other resources If you never worked with threads, then you really need a tutorial about threads, or even a general explanation about