<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Modules/_testcapimodule.c, branch v2.4.3</title>
<subtitle>Python interpreter</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Modules/_testcapimodule.c?h=v2.4.3</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Modules/_testcapimodule.c?h=v2.4.3'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2006-03-28T07:09:33Z</updated>
<entry>
<title>Merge rev 43181 from the trunk.</title>
<updated>2006-03-28T07:09:33Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2006-03-28T07:09:33Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=1d250001f5d298ec2e295aa9dadbad008eac3939'/>
<id>urn:sha1:1d250001f5d298ec2e295aa9dadbad008eac3939</id>
<content type='text'>
Try to repair at least one segfault on the Mac buildbot,
as diagnosed by Nick Coghlan.

test_capi.py:  A test module should never spawn a thread as
a side effect of being imported.  Because this one did, the
segfault one of its thread tests caused didn't occur until
a few tests after test_regrtest.py thought test_capi was
finished.  Repair that.  Also join() the thread spawned
at the end, so that test_capi is truly finished when
regrtest reports that it's done.

_testcapimodule.c test_thread_state():  this spawns a
couple of non-threading.py threads, passing them a PyObject*
argument, but did nothing to ensure that those threads
finished before returning.  As a result, the PyObject*
_could_ (although this was unlikely) get decref'ed out of
existence before the threads got around to using it.
Added explicit synchronization (via a Python mutex) so
that test_thread_state can reliably wait for its spawned
threads to finish.
</content>
</entry>
<entry>
<title>Backport 43037:</title>
<updated>2006-03-15T05:44:35Z</updated>
<author>
<name>Neal Norwitz</name>
<email>nnorwitz@gmail.com</email>
</author>
<published>2006-03-15T05:44:35Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=854e91889f2cf76cccc100471fab4135958fbfa9'/>
<id>urn:sha1:854e91889f2cf76cccc100471fab4135958fbfa9</id>
<content type='text'>
Move test code out of xxmodule and into _testcapimodule.c where it belongs.
</content>
</entry>
<entry>
<title>forwardport of 2.3.5 fixes to copy.py</title>
<updated>2005-02-07T12:39:55Z</updated>
<author>
<name>Alex Martelli</name>
<email>aleaxit@gmail.com</email>
</author>
<published>2005-02-07T12:39:55Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=4c337993c5afdfd9ebb40ff0847cf6015a875f4f'/>
<id>urn:sha1:4c337993c5afdfd9ebb40ff0847cf6015a875f4f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix silly leak in test used in test_exceptions.</title>
<updated>2003-08-15T13:03:30Z</updated>
<author>
<name>Michael W. Hudson</name>
<email>mwh@python.net</email>
</author>
<published>2003-08-15T13:03:30Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=f02bcee095bf0343b9871fd28cf2d580337c599a'/>
<id>urn:sha1:f02bcee095bf0343b9871fd28cf2d580337c599a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>New support functions for test_getargs2.</title>
<updated>2003-04-24T16:14:27Z</updated>
<author>
<name>Thomas Heller</name>
<email>theller@ctypes.org</email>
</author>
<published>2003-04-24T16:14:27Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=3457e4bd80fc2496bc3b9e1410365c97ee8dcb8f'/>
<id>urn:sha1:3457e4bd80fc2496bc3b9e1410365c97ee8dcb8f</id>
<content type='text'>
Theres now a separate function for each of the format codes
b, B, H, I, k, i, l, L, K.
</content>
</entry>
<entry>
<title>Get test_capi &amp; test_getargs2 to pass on alphas</title>
<updated>2003-04-22T01:28:57Z</updated>
<author>
<name>Neal Norwitz</name>
<email>nnorwitz@gmail.com</email>
</author>
<published>2003-04-22T01:28:57Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=699cbb767628888901d1a3c1f0ce20dd3ce1e4f9'/>
<id>urn:sha1:699cbb767628888901d1a3c1f0ce20dd3ce1e4f9</id>
<content type='text'>
  * UINT_MAX -&gt; ULONG_MAX since we are dealing with longs
  * ParseTuple needs &amp;int for 'i' and &amp;long for 'l'
    There may be a better way to do this, but this works.
</content>
</entry>
<entry>
<title>New PyGILState_ API - implements pep 311, from patch 684256.</title>
<updated>2003-04-19T15:41:53Z</updated>
<author>
<name>Mark Hammond</name>
<email>mhammond@skippinet.com.au</email>
</author>
<published>2003-04-19T15:41:53Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=8d98d2cb95ac37147a4de5a119869211e8351324'/>
<id>urn:sha1:8d98d2cb95ac37147a4de5a119869211e8351324</id>
<content type='text'>
</content>
</entry>
<entry>
<title>SF # 595026: support for masks in getargs.c.</title>
<updated>2003-04-17T18:55:45Z</updated>
<author>
<name>Thomas Heller</name>
<email>theller@ctypes.org</email>
</author>
<published>2003-04-17T18:55:45Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=a4ea603b055533e71920a088acb1c106e4895dbd'/>
<id>urn:sha1:a4ea603b055533e71920a088acb1c106e4895dbd</id>
<content type='text'>
New functions:
  unsigned long PyInt_AsUnsignedLongMask(PyObject *);
  unsigned PY_LONG_LONG) PyInt_AsUnsignedLongLongMask(PyObject *);
  unsigned long PyLong_AsUnsignedLongMask(PyObject *);
  unsigned PY_LONG_LONG) PyLong_AsUnsignedLongLongMask(PyObject *);

New and changed format codes:

b unsigned char 0..UCHAR_MAX
B unsigned char none **
h unsigned short 0..USHRT_MAX
H unsigned short none **
i int INT_MIN..INT_MAX
I * unsigned int 0..UINT_MAX
l long LONG_MIN..LONG_MAX
k * unsigned long none
L long long LLONG_MIN..LLONG_MAX
K * unsigned long long none

Notes:

* New format codes.

** Changed from previous "range-and-a-half" to "none"; the
range-and-a-half checking wasn't particularly useful.

New test test_getargs2.py, to verify all this.
</content>
</entry>
<entry>
<title>Rename LONG_LONG to PY_LONG_LONG. Fixes #710285.</title>
<updated>2003-03-29T10:06:18Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2003-03-29T10:06:18Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=b9a0f9121876cbc728cbef88f16bb32b92712d2d'/>
<id>urn:sha1:b9a0f9121876cbc728cbef88f16bb32b92712d2d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>_PyLong_NumBits():  The definition of this was too specific to the quirky</title>
<updated>2003-01-31T15:52:05Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2003-01-31T15:52:05Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=5b8132ffa34244cc24b603d8462e6e733e014e71'/>
<id>urn:sha1:5b8132ffa34244cc24b603d8462e6e733e014e71</id>
<content type='text'>
needs of pickling longs.  Backed off to a definition that's much easier
to understand.  The pickler will have to work a little harder, but other
uses are more likely to be correct &lt;0.5 wink&gt;.

_PyLong_Sign():  New teensy function to characterize a long, as to &lt;0, ==0,
or &gt;0.
</content>
</entry>
</feed>
