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 (onl
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
<
Andriy Mysyk added the comment:
patch attached
--
keywords: +patch
Added file: http://bugs.python.org/file30142/issue17910.patch
___
Python tracker
<http://bugs.python.org/issue17
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
m
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
<http://bugs.python.org/issue17
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
___
Pyth
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
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
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 for
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
<http://bu
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 trac
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
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
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
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 trac
Andriy Mysyk added the comment:
I will create a code example by the end of Sunday, April 21.
--
___
Python tracker
<http://bugs.python.org/issue17808>
___
___
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
Changes by Andriy Mysyk :
--
type: -> enhancement
___
Python tracker
<http://bugs.python.org/issue17771>
___
___
Python-bugs-list mailing list
Unsubscri
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
<http://bugs.python.org/issu
Andriy Mysyk added the comment:
I will create a patch for this issue by Apr 23, 2013.
--
___
Python tracker
<http://bugs.python.org/issue17771>
___
___
Python-bug
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 cooper
21 matches
Mail list logo