[Python-checkins] [python/cpython] aefa7e: bpo-6532: Make the thread id an unsigned integer. ...

GitHub noreply at github.com
Thu Mar 23 09:48:41 EDT 2017


  Branch: refs/heads/master
  Home:   https://github.com/python/cpython
  Commit: aefa7ebf0ff0f73feee7ab24f4cdcb2014d83ee5
      https://github.com/python/cpython/commit/aefa7ebf0ff0f73feee7ab24f4cdcb2014d83ee5
  Author: Serhiy Storchaka <storchaka at gmail.com>
  Date:   2017-03-23 (Thu, 23 Mar 2017)

  Changed paths:
    M Doc/c-api/init.rst
    M Doc/whatsnew/3.7.rst
    M Include/pystate.h
    M Include/pythread.h
    M Lib/_dummy_thread.py
    M Lib/test/test_dummy_thread.py
    M Lib/test/test_sys.py
    M Lib/test/test_threading.py
    M Lib/threading.py
    M Misc/NEWS
    M Modules/_io/bufferedio.c
    M Modules/_multiprocessing/semaphore.c
    M Modules/_sqlite/connection.c
    M Modules/_sqlite/connection.h
    M Modules/_ssl.c
    M Modules/_threadmodule.c
    M Modules/clinic/signalmodule.c.h
    M Modules/faulthandler.c
    M Modules/signalmodule.c
    M Python/ceval.c
    M Python/import.c
    M Python/pystate.c
    M Python/thread.c
    M Python/thread_foobar.h
    M Python/thread_nt.h
    M Python/thread_pthread.h
    M Python/traceback.c

  Log Message:
  -----------
  bpo-6532: Make the thread id an unsigned integer. (#781)

* bpo-6532: Make the thread id an unsigned integer.

>From C API side the type of results of PyThread_start_new_thread() and
PyThread_get_thread_ident(), the id parameter of
PyThreadState_SetAsyncExc(), and the thread_id field of PyThreadState
changed from "long" to "unsigned long".

* Restore a check in thread_get_ident().




More information about the Python-checkins mailing list