Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 770b0be

Browse files
committed
#4808: move old API below new API doc.
1 parent 574b127 commit 770b0be

1 file changed

Lines changed: 14 additions & 12 deletions

File tree

Doc/library/threading.rst

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -278,19 +278,20 @@ impossible to detect the termination of alien threads.
278278
raises the same exception.
279279

280280

281-
.. method:: Thread.getName()
282-
Thread.setName()
283-
284-
Old API for :attr:`~Thread.name`.
285-
286-
287281
.. attribute:: Thread.name
288282

289283
A string used for identification purposes only. It has no semantics.
290284
Multiple threads may be given the same name. The initial name is set by the
291285
constructor.
292286

293287

288+
.. method:: Thread.getName()
289+
Thread.setName()
290+
291+
Old getter/setter API for :attr:`~Thread.name`; use it directly as a property
292+
instead.
293+
294+
294295
.. attribute:: Thread.ident
295296

296297
The 'thread identifier' of this thread or ``None`` if the thread has not been
@@ -309,12 +310,6 @@ impossible to detect the termination of alien threads.
309310
returns a list of all alive threads.
310311

311312

312-
.. method:: Thread.isDaemon()
313-
Thread.setDaemon()
314-
315-
Old API for :attr:`~Thread.daemon`.
316-
317-
318313
.. attribute:: Thread.daemon
319314

320315
The thread's daemon flag. This must be set before :meth:`start` is called,
@@ -325,6 +320,13 @@ impossible to detect the termination of alien threads.
325320
The entire Python program exits when no alive non-daemon threads are left.
326321

327322

323+
.. method:: Thread.isDaemon()
324+
Thread.setDaemon()
325+
326+
Old getter/setter API for :attr:`~Thread.daemon`; use it directly as a
327+
property instead.
328+
329+
328330
.. _lock-objects:
329331

330332
Lock Objects

0 commit comments

Comments
 (0)