@@ -283,29 +283,29 @@ several condition variables must share the same lock.)
283283
284284A condition variable has :meth: `acquire ` and :meth: `release ` methods that call
285285the corresponding methods of the associated lock. It also has a :meth: `wait `
286- method, and :meth: `notify ` and :meth: `notifyAll ` methods. These three must only
286+ method, and :meth: `notify ` and :meth: `notify_all ` methods. These three must only
287287be called when the calling thread has acquired the lock, otherwise a
288288:exc: `RuntimeError ` is raised.
289289
290290The :meth: `wait ` method releases the lock, and then blocks until it is awakened
291- by a :meth: `notify ` or :meth: `notifyAll ` call for the same condition variable in
291+ by a :meth: `notify ` or :meth: `notify_all ` call for the same condition variable in
292292another thread. Once awakened, it re-acquires the lock and returns. It is also
293293possible to specify a timeout.
294294
295295The :meth: `notify ` method wakes up one of the threads waiting for the condition
296- variable, if any are waiting. The :meth: `notifyAll ` method wakes up all threads
296+ variable, if any are waiting. The :meth: `notify_all ` method wakes up all threads
297297waiting for the condition variable.
298298
299- Note: the :meth: `notify ` and :meth: `notifyAll ` methods don't release the lock;
299+ Note: the :meth: `notify ` and :meth: `notify_all ` methods don't release the lock;
300300this means that the thread or threads awakened will not return from their
301301:meth: `wait ` call immediately, but only when the thread that called
302- :meth: `notify ` or :meth: `notifyAll ` finally relinquishes ownership of the lock.
302+ :meth: `notify ` or :meth: `notify_all ` finally relinquishes ownership of the lock.
303303
304304Tip: the typical programming style using condition variables uses the lock to
305305synchronize access to some shared state; threads that are interested in a
306306particular change of state call :meth: `wait ` repeatedly until they see the
307307desired state, while threads that modify the state call :meth: `notify ` or
308- :meth: `notifyAll ` when they change the state in such a way that it could
308+ :meth: `notify_all ` when they change the state in such a way that it could
309309possibly be a desired state for one of the waiters. For example, the following
310310code is a generic producer-consumer situation with unlimited buffer capacity::
311311
@@ -322,7 +322,7 @@ code is a generic producer-consumer situation with unlimited buffer capacity::
322322 cv.notify()
323323 cv.release()
324324
325- To choose between :meth: `notify ` and :meth: `notifyAll `, consider whether one
325+ To choose between :meth: `notify ` and :meth: `notify_all `, consider whether one
326326state change can be interesting for only one or several waiting threads. E.g.
327327in a typical producer-consumer situation, adding one item to the buffer only
328328needs to wake up one consumer thread.
@@ -353,7 +353,7 @@ needs to wake up one consumer thread.
353353 acquired the lock when this method is called, a :exc: `RuntimeError ` is raised.
354354
355355 This method releases the underlying lock, and then blocks until it is awakened
356- by a :meth: `notify ` or :meth: `notifyAll ` call for the same condition variable in
356+ by a :meth: `notify ` or :meth: `notify_all ` call for the same condition variable in
357357 another thread, or until the optional timeout occurs. Once awakened or timed
358358 out, it re-acquires the lock and returns.
359359
@@ -490,7 +490,7 @@ An event object manages an internal flag that can be set to true with the
490490 The internal flag is initially false.
491491
492492
493- .. method :: Event.isSet ()
493+ .. method :: Event.is_set ()
494494
495495 Return true if and only if the internal flag is true.
496496
@@ -537,7 +537,7 @@ separate thread of control.
537537
538538Once the thread's activity is started, the thread is considered 'alive'. It
539539stops being alive when its :meth: `run ` method terminates -- either normally, or
540- by raising an unhandled exception. The :meth: `isAlive ` method tests whether the
540+ by raising an unhandled exception. The :meth: `is_alive ` method tests whether the
541541thread is alive.
542542
543543Other threads can call a thread's :meth: `join ` method. This blocks the calling
@@ -614,7 +614,7 @@ impossible to detect the termination of alien threads.
614614
615615 When the *timeout * argument is present and not ``None ``, it should be a floating
616616 point number specifying a timeout for the operation in seconds (or fractions
617- thereof). As :meth: `join ` always returns ``None ``, you must call :meth: `isAlive `
617+ thereof). As :meth: `join ` always returns ``None ``, you must call :meth: `is_alive `
618618 after :meth: `join ` to decide whether a timeout happened -- if the thread is
619619 still alive, the :meth: `join ` call timed out.
620620
0 commit comments