If you call the same logging handler from two different python threads, is there a need for locking?
+2
A:
The logging module is thread-safe; it handles the locking for you. See the docs.
unutbu
2010-06-04 12:09:01
Thanks for pointing this out. The py docs are awful in my view, they ramble on forever so I tend not to go there first, and often they lack basic info.
Rhubarb
2010-06-04 13:05:20
Get the python sidebar Firefox plug-in you will start loving the python documentation
anijhaw
2010-06-04 13:11:16
@Rhubarb: no problem. It takes a while to gather the right resources (websites, source code, example snippets, etc) and learn how to search them (google, ipython, grep), to feel comfortable with the language. Don't give up on the official docs (they grow on you), but feel free to keep asking questions.
unutbu
2010-06-04 14:01:57
@Rhubarb: "lack basic info". In this case, they had the basic info. So, your comment is out of line. Do you have any specifics or are you just complaining?
S.Lott
2010-06-04 14:53:16
There are plenty of examples of Python's docs coming up short. My comment is quite in line. I appreciate your helpful responses otherwise.
Rhubarb
2010-06-06 02:35:11