[Python-checkins] CVS: python/dist/src/Misc NEWS,1.279,1.280

Guido van Rossum gvanrossum@users.sourceforge.net
2001年10月16日 14:13:51 -0700


Update of /cvsroot/python/python/dist/src/Misc
In directory usw-pr-cvs1:/tmp/cvs-serv29764/Misc
Modified Files:
	NEWS 
Log Message:
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.)
Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.279
retrieving revision 1.280
diff -C2 -d -r1.279 -r1.280
*** NEWS	2001年10月16日 20:42:52	1.279
--- NEWS	2001年10月16日 21:13:49	1.280
***************
*** 40,43 ****
--- 40,45 ----
 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,94 ****
--- 93,103 ----
 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

AltStyle によって変換されたページ (->オリジナル) /