summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-10-16 21:13:49 (GMT)
committerGuido van Rossum <guido@python.org>2001-10-16 21:13:49 (GMT)
commit3c28863e081986a232d4d2bba3cd9b63e14263c0 (patch)
tree480d600501cb10db20d12907bf27644c0732269b /Misc
parent6f543b606d595fa16ce1ef0e636ca456dabc2212 (diff)
downloadcpython-3c28863e081986a232d4d2bba3cd9b63e14263c0.zip
cpython-3c28863e081986a232d4d2bba3cd9b63e14263c0.tar.gz
cpython-3c28863e081986a232d4d2bba3cd9b63e14263c0.tar.bz2
Partial patch from SF #452266, by Jason Petrone.
This changes Pythread_start_thread() to return the thread ID, or -1 for an error. (It's technically an incompatible API change, but I doubt anyone calls it.)
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS9
1 files changed, 9 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 690759b..1d86a43 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -39,6 +39,8 @@ Core
Library
+- thread.start_new_thread() now returns the thread ID (previously None).
+
- doctest now excludes functions and classes not defined by the module
being tested, thanks to Tim Hochberg.
@@ -91,6 +93,13 @@ C API
Consequently, PyArg_ParseTuple's 'L' code also accepts int (as well
as long) arguments.
+- PyThread_start_new_thread() now returns a long int giving the thread
+ ID, if one can be calculated; it returns -1 for error, 0 if no
+ thread ID is calculated (this is an incompatible change, but only
+ the thread module used this API). This code has only really been
+ tested on Linux and Windows; other platforms please beware (and
+ report any bugs or strange behavior).
+
New platforms
Tests