[issue17858] Different documentation for identical methods

2013-05-09 Thread Andriy Mysyk
Andriy Mysyk added the comment: Incorporated R. David Murray's feedback... .. method:: acquire(blocking=True, timeout=-1) Without any optional argument, this method acquires the lock unconditionally, if necessary waiting until it is released by another thread (only one

[issue17858] Different documentation for identical methods

2013-05-05 Thread Andriy Mysyk
Andriy Mysyk added the comment: Made changes suggested by Ezio Melotti in the attached patch. -- Added file: http://bugs.python.org/file30136/issue17858.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17858

[issue17910] Usage error in multiprocessing documentation

2013-05-05 Thread Andriy Mysyk
New submission from Andriy Mysyk: As mentioned above, when doing concurrent programming it is usually best to avoid using shared state as far as possible should say as much as possible in multiprocessing.rst. -- assignee: docs@python components: Documentation messages: 188461 nosy

[issue17910] Usage error in multiprocessing documentation

2013-05-05 Thread Andriy Mysyk
Andriy Mysyk added the comment: patch attached -- keywords: +patch Added file: http://bugs.python.org/file30142/issue17910.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17910

[issue17910] Usage error in multiprocessing documentation

2013-05-05 Thread Andriy Mysyk
Andriy Mysyk added the comment: I found the use of as far (as opposed to as much) but Richard has a good point. Let's close the issue. -- resolution: - works for me status: open - closed ___ Python tracker rep...@bugs.python.org http

[issue17858] Different documentation for identical methods

2013-04-28 Thread Andriy Mysyk
Andriy Mysyk added the comment: Apologies. I did not mean to include 17851 changes. Removed the changes, leaving out the comma after block in the attached patch. -- Added file: http://bugs.python.org/file30047/issue17858.patch ___ Python tracker

[issue17851] Grammar errors in threading.Lock documentation

2013-04-27 Thread Andriy Mysyk
Andriy Mysyk added the comment: Ramachandra, if I understand you correctly, I think what you are saying that both are grammar mistakes and the first one could addressed by adding s to block. -- ___ Python tracker rep...@bugs.python.org http

[issue17858] Different documentation for identical methods

2013-04-27 Thread Andriy Mysyk
New submission from Andriy Mysyk: Use _thread.Lock.acquire() documentation for threading.Lock.acquire(). threading.Lock inherits acquire() method from _thread.Lock. The two acquire() methods are identical in their functionality yet have different documentation. Documentation

[issue17858] Different documentation for identical methods

2013-04-27 Thread Andriy Mysyk
Andriy Mysyk added the comment: I am attaching a patch that applies _thread.Lock.acquire() documentation to the functionally identical threading.Lock.acquire(). -- keywords: +patch Added file: http://bugs.python.org/file30039/issue17858.patch

[issue17858] Different documentation for identical methods

2013-04-27 Thread Andriy Mysyk
Andriy Mysyk added the comment: Issue 14823 indeed improved threading documentation. However, even with the improvement threading documentation makes acquire() appear to be more complex and harder to use than it actually is. -- ___ Python tracker

[issue17851] Grammar errors in threading.Lock documentation

2013-04-26 Thread Andriy Mysyk
New submission from Andriy Mysyk: No need for comma in which one of the waiting threads proceeds is not defined, and may vary across implementations. Once a thread has acquired a lock, subsequent attempts to acquire it block, until it is released; any thread may release it should read

[issue17851] Grammar errors in threading.Lock documentation

2013-04-26 Thread Andriy Mysyk
Andriy Mysyk added the comment: submitting a patch for both grammar errors -- assignee: - docs@python components: +Documentation keywords: +patch nosy: +docs@python Added file: http://bugs.python.org/file30029/issue17851.patch ___ Python tracker rep

[issue17808] No code example for Event object in threading module

2013-04-21 Thread Andriy Mysyk
Andriy Mysyk added the comment: Thank you for the feedback, Antoine. The example shows how to essentially kill threads through an event facilitated request, something that I consider to be useful and non-obvious. I trust that you and others will make the right decision and will keep your

[issue17808] No code example for Event object in threading module

2013-04-20 Thread Andriy Mysyk
New submission from Andriy Mysyk: Documentation for Event objects in threading module could be more clear with a code example. http://docs.python.org/3.4/library/threading.html#event-objects -- messages: 187486 nosy: amysyk priority: normal severity: normal status: open title: No code

[issue17808] No code example for Event object in threading module

2013-04-20 Thread Andriy Mysyk
Andriy Mysyk added the comment: I will create a code example by the end of Sunday, April 21. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17808

[issue17808] No code example for Event object in threading module

2013-04-20 Thread Andriy Mysyk
Andriy Mysyk added the comment: See the patch with a code example attached. -- assignee: - docs@python components: +Documentation keywords: +patch nosy: +docs@python Added file: http://bugs.python.org/file29963/bug17808.patch ___ Python tracker rep

[issue17808] No code example for Event object in threading module

2013-04-20 Thread Andriy Mysyk
Andriy Mysyk added the comment: Example added to threading.rst For example, the following code demonstrates a controlled thread termination using an event object. The event is used to request the termination of several threads. import threading import time stopevent = threading.Event

[issue17771] Missing period in concurrent execution doc in standard library

2013-04-16 Thread Andriy Mysyk
New submission from Andriy Mysyk: No period after the first sentence of the first paragraph in /Doc/build/html/library/concurrency.html. The appropriate choice of tool will depend on the task to be executed (CPU bound vs IO bound) and preferred style of development (event driven cooperative

[issue17771] Missing period in concurrent execution doc in standard library

2013-04-16 Thread Andriy Mysyk
Andriy Mysyk added the comment: I will create a patch for this issue by Apr 23, 2013. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17771

[issue17771] Missing period in concurrent execution doc in standard library

2013-04-16 Thread Andriy Mysyk
Andriy Mysyk added the comment: Added a missing period to concurrency.rst -- keywords: +patch type: enhancement - Added file: http://bugs.python.org/file29898/mywork.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17771

[issue17771] Missing period in concurrent execution doc in standard library

2013-04-16 Thread Andriy Mysyk
Changes by Andriy Mysyk andriy.my...@gmail.com: -- type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17771 ___ ___ Python-bugs