<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Modules/_threadmodule.c, branch v3.6.7</title>
<subtitle>github.com: python/cpython.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/'/>
<entry>
<title>[3.6] Fix misleading mentions of tp_size in comments (GH-9137)</title>
<updated>2018-09-10T17:23:03+00:00</updated>
<author>
<name>Benjamin Peterson</name>
<email>benjamin@python.org</email>
</author>
<published>2018-09-10T17:23:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=6a939c8dae225aaf088c8c37de8cc2655c83ee61'/>
<id>6a939c8dae225aaf088c8c37de8cc2655c83ee61</id>
<content type='text'>
Many type object initializations labeled a field "tp_size" in the
comment, but the name of that field is tp_basicsize..
(cherry picked from commit 0e0bc4e221f592f305d335faf5f8046484eb9238)

Co-authored-by: Peter Eisentraut &lt;peter@eisentraut.org&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Many type object initializations labeled a field "tp_size" in the
comment, but the name of that field is tp_basicsize..
(cherry picked from commit 0e0bc4e221f592f305d335faf5f8046484eb9238)

Co-authored-by: Peter Eisentraut &lt;peter@eisentraut.org&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>[3.6] bpo-31806: Use _PyTime_ROUND_TIMEOUT for the timeout argument parsing in more functions (GH-4026) (#4032)</title>
<updated>2017-10-18T09:09:57+00:00</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2017-10-18T09:09:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=be4e9cc769aac3cb46670c049b9f21e412be53d1'/>
<id>be4e9cc769aac3cb46670c049b9f21e412be53d1</id>
<content type='text'>
Fix timeout rounding in time.sleep(), threading.Lock.acquire() and
socket.socket.settimeout() to round correctly negative timeouts between -1.0 and
0.0. The functions now block waiting for events as expected. Previously, the
call was incorrectly non-blocking.
(cherry picked from commit 59af94fa61bf90adbe624508e909b5d6ef6e8464)</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix timeout rounding in time.sleep(), threading.Lock.acquire() and
socket.socket.settimeout() to round correctly negative timeouts between -1.0 and
0.0. The functions now block waiting for events as expected. Previously, the
call was incorrectly non-blocking.
(cherry picked from commit 59af94fa61bf90adbe624508e909b5d6ef6e8464)</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #27895:  Spelling fixes (Contributed by Ville Skyttä).</title>
<updated>2016-08-30T17:47:49+00:00</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2016-08-30T17:47:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=15f44ab043b37c064d6891c7864205fed9fb0dd1'/>
<id>15f44ab043b37c064d6891c7864205fed9fb0dd1</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #18916: Update thread module docstrings</title>
<updated>2016-05-02T09:25:35+00:00</updated>
<author>
<name>Berker Peksag</name>
<email>berker.peksag@gmail.com</email>
</author>
<published>2016-05-02T09:25:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=720e65541cc288f4015021ffeb4c03b1f0937895'/>
<id>720e65541cc288f4015021ffeb4c03b1f0937895</id>
<content type='text'>
* Fix acquire() signature
* Remove outdated help(LockType) reference
* Replace PyThread_allocate_lock() with threading.Lock()

Patch by Christopher Welborn.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Fix acquire() signature
* Remove outdated help(LockType) reference
* Replace PyThread_allocate_lock() with threading.Lock()

Patch by Christopher Welborn.
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #24115: Update uses of PyObject_IsTrue(), PyObject_Not(),</title>
<updated>2015-05-30T14:48:19+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2015-05-30T14:48:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=ac5569b1fa483c50edca82bab1ab0a8a927ba86a'/>
<id>ac5569b1fa483c50edca82bab1ab0a8a927ba86a</id>
<content type='text'>
PyObject_IsInstance(), PyObject_RichCompareBool() and _PyDict_Contains()
to check for and handle errors correctly.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
PyObject_IsInstance(), PyObject_RichCompareBool() and _PyDict_Contains()
to check for and handle errors correctly.
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #24115: Update uses of PyObject_IsTrue(), PyObject_Not(),</title>
<updated>2015-05-30T14:45:22+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2015-05-30T14:45:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=fa494fd88384acc52cf9292d0c89e2961c8f747f'/>
<id>fa494fd88384acc52cf9292d0c89e2961c8f747f</id>
<content type='text'>
PyObject_IsInstance(), PyObject_RichCompareBool() and _PyDict_Contains()
to check for and handle errors correctly.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
PyObject_IsInstance(), PyObject_RichCompareBool() and _PyDict_Contains()
to check for and handle errors correctly.
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #22117: Add a new _PyTime_FromSeconds() function</title>
<updated>2015-04-03T11:10:54+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2015-04-03T11:10:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=13019fdef3b6d589f8d7602943c76fcc637114ea'/>
<id>13019fdef3b6d589f8d7602943c76fcc637114ea</id>
<content type='text'>
Fix also _Py_InitializeEx_Private(): initialize time before initializing
import, import_init() uses the _PyTime API (for thread locks).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix also _Py_InitializeEx_Private(): initialize time before initializing
import, import_init() uses the _PyTime API (for thread locks).
</pre>
</div>
</content>
</entry>
<entry>
<title>PEP 475: on EINTR, retry the function even if the timeout is equals to zero</title>
<updated>2015-03-30T19:33:51+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2015-03-30T19:33:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=6aa446cf039f9533a5ecf2400bf060db4313a417'/>
<id>6aa446cf039f9533a5ecf2400bf060db4313a417</id>
<content type='text'>
Retry:

* signal.sigtimedwait()
* threading.Lock.acquire()
* threading.RLock.acquire()
* time.sleep()
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Retry:

* signal.sigtimedwait()
* threading.Lock.acquire()
* threading.RLock.acquire()
* time.sleep()
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #22117: Replace usage of _PyTime_ROUND_UP with _PyTime_ROUND_CEILING</title>
<updated>2015-03-30T01:49:14+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2015-03-30T01:49:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=869e1778c0bcfc0928701c6ae0703934359d036b'/>
<id>869e1778c0bcfc0928701c6ae0703934359d036b</id>
<content type='text'>
All these functions only accept positive timeouts, so this change has no effect
in practice.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
All these functions only accept positive timeouts, so this change has no effect
in practice.
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #22117: The thread module uses the new _PyTime_t timestamp API</title>
<updated>2015-03-28T02:52:05+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2015-03-28T02:52:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=f5faad2bf017db9e99845de29420476914f1ef1d'/>
<id>f5faad2bf017db9e99845de29420476914f1ef1d</id>
<content type='text'>
Add also a new _PyTime_AsMicroseconds() function.

threading.TIMEOUT_MAX is now be smaller: only 292 years instead of 292,271
years on 64-bit system for example. Sorry, your threads will hang a *little
bit* shorter. Call me if you want to ensure that your locks wait longer, I can
share some tricks with you.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add also a new _PyTime_AsMicroseconds() function.

threading.TIMEOUT_MAX is now be smaller: only 292 years instead of 292,271
years on 64-bit system for example. Sorry, your threads will hang a *little
bit* shorter. Call me if you want to ensure that your locks wait longer, I can
share some tricks with you.
</pre>
</div>
</content>
</entry>
</feed>
