Couldn't think of a better wording for the title. See for instance the answer to http://stackoverflow.com/questions/1564501/add-timeout-argument-to-pythons-queue-join
The answer to that question uses an attribute of the Queue class called all_tasks_done
(accidentally wrote join_with_timeout
here in the original post).
However, in http://docs.python.org/library/queue.html#module-Queue that attribute is never mentioned.
Where can someone who wants, for instance, to subclass Queue
could find the documentation of the inner workings, other than reading the source code?
EDIT: A lot of answers to this question state that it's best to just read the source. I'll try to explain my problem(s) with that:
- As much as I love python, it is still not a natural language, and reading english is easier than reading source code
- It is hard to infer some things from the source by itself, for instance something as "this variable must be locked before any calls to get() or put()". If the variable is commented then I am once again reading english and not the source code, so why not put it in the documentation document and not just in the source?
- (this is the most important reason IMO) It seems the decision what should be in the documentation and what shouldn't are made almost arbitrarily - can you really give me a good reason to why
all_tasks_done
shouldn't be mentioned?