summaryrefslogtreecommitdiffstats
path: root/Lib/ctypes
Commit message (Collapse)AuthorAgeFilesLines
...
* | - Issue #10181: New memoryview implementation fixes multiple ownershipStefan Krah2012-02-251-36/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and lifetime issues of dynamically allocated Py_buffer members (#9990) as well as crashes (#8305, #7433). Many new features have been added (See whatsnew/3.3), and the documentation has been updated extensively. The ndarray test object from _testbuffer.c implements all aspects of PEP-3118, so further development towards the complete implementation of the PEP can proceed in a test-driven manner. Thanks to Nick Coghlan, Antoine Pitrou and Pauli Virtanen for review and many ideas. - Issue #12834: Fix incorrect results of memoryview.tobytes() for non-contiguous arrays. - Issue #5231: Introduce memoryview.cast() method that allows changing format and shape without making a copy of the underlying memory.
* | Issue #12142: Fixed reference cycle when importing ctypesMeador Inge2012-02-051-1/+1
|\ \ | |/
| * Issue #12142: Fixed reference cycle when importing ctypesMeador Inge2012-02-051-1/+1
| |
* | Issue #13380: add an internal function for resetting the ctypes cachesMeador Inge2011-11-263-9/+18
|\ \ | |/
| * Issue #13380: add an internal function for resetting the ctypes cachesMeador Inge2011-11-263-9/+18
| |
* | Issue #12881: ctypes: Fix segfault with large structure field names.Meador Inge2011-10-041-0/+12
|\ \ | |/
| * Issue #12881: ctypes: Fix segfault with large structure field names.Meador Inge2011-10-041-0/+12
| |
* | test_ctypes: Windows is no more a special caseVictor Stinner2011-09-281-6/+3
| |
* | Remove trailing spacesAmaury Forgeot d'Arc2011-09-121-1/+1
| |
* | Merge 3.2: Issue #12483: ctypes: Fix a crash when the destruction of a callbackAmaury Forgeot d'Arc2011-09-121-0/+8
|\ \ | |/ | | | | object triggers the garbage collector.
| * Issue #12483: ctypes: Fix a crash when the destruction of a callbackAmaury Forgeot d'Arc2011-09-121-0/+8
| | | | | | | | object triggers the garbage collector.
* | Merge from 3.2: Issue #12764: Fix a crash in ctypes when the name of aAmaury Forgeot d'Arc2011-09-021-0/+8
|\ \ | |/ | | | | Structure field is not a string.
| * Issue #12764: Fix a crash in ctypes when the name of a Structure field is notAmaury Forgeot d'Arc2011-09-021-0/+8
| | | | | | | | a string.
* | Merge from 3.2:Amaury Forgeot d'Arc2011-08-302-0/+56
|\ \ | |/ | | | | | | - Issue #9651: Fix a crash when ctypes.create_string_buffer(0) was passed to file.write() - Issue #11241: subclasses of ctypes.Array can now be subclassed.
| * Issue #11241: subclasses of ctypes.Array can now be subclassed.Amaury Forgeot d'Arc2011-08-301-0/+52
| |
| * Issue #9651: Fix a crash when ctypes.create_string_buffer(0) was passed toAmaury Forgeot d'Arc2011-08-301-0/+4
| | | | | | | | some functions like file.write().
* | Issue #12326: refactor usage of sys.platformVictor Stinner2011-08-201-3/+1
| | | | | | | | | | | | | | | | * Use str.startswith(tuple): I didn't know this Python feature, Python rocks! * Replace sometimes sys.platform.startswith('linux') with sys.platform == 'linux' * sys.platform doesn't contain the major version on Cygwin on Mac OS X (it's just 'cygwin' and 'darwin')
* | merge 3.2Benjamin Peterson2011-07-141-12/+12
|\ \ | |/
| * carefully cleanup pointer cache after creating struct pointersBenjamin Peterson2011-07-141-12/+12
| |
* | (merge 3.2) Close #4376: ctypes now supports nested structures in a endianVictor Stinner2011-07-132-18/+36
|\ \ | |/ | | | | different than the parent structure. Patch by Vlad Riscutia.
| * Close #4376: ctypes now supports nested structures in a endian different thanVictor Stinner2011-07-132-18/+36
| | | | | | | | the parent structure. Patch by Vlad Riscutia.
* | Issue #12045: Avoid duplicate execution of command in ctypes.util._get_soname().Antoine Pitrou2011-05-251-3/+1
| | | | | | | | Patch by Sijin Joseph.
* | Remove unused private functionAntoine Pitrou2011-04-231-16/+0
| |
* | Issue #11258: Speed up ctypes.util.find_library() under Linux by a factorAntoine Pitrou2011-04-231-8/+14
| | | | | | | | of 5 to 10. Initial patch by Jonas H.
* | merge 3.2Benjamin Peterson2011-03-261-0/+12
|\ \ | |/
| * merge 3.1Benjamin Peterson2011-03-261-0/+12
| |\
| | * check possible recursive _as_parameter_ to prevent segfault (closes #1838)Benjamin Peterson2011-03-261-0/+12
| | |
* | | #11565: Merge with 3.2.Ezio Melotti2011-03-164-4/+4
|\ \ \ | |/ /
| * | #11565: Merge with 3.1.Ezio Melotti2011-03-164-4/+4
| |\ \ | | |/
| | * #11565: Fix several typos. Patch by Piotr Kasprzyk.Ezio Melotti2011-03-164-4/+4
| | |
* | | #11515: Merge with 3.2.Ezio Melotti2011-03-151-1/+1
|\ \ \ | |/ /
| * | #11515: Merge with 3.1.Ezio Melotti2011-03-151-1/+1
| |\ \ | | |/
| | * #11515: fix several typos. Patch by Piotr Kasprzyk.Ezio Melotti2011-03-151-1/+1
| | |
| | * Merged revisions 88284 via svnmerge fromAntoine Pitrou2011-01-311-0/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r88284 | antoine.pitrou | 2011-01-31 22:08:57 +0100 (lun., 31 janv. 2011) | 4 lines Issue #8275: Fix passing of callback arguments with ctypes under Win64. Patch by Stan Mihai. Ok'ed by Georg. ........
| | * Merged revisions 86596 via svnmerge fromEzio Melotti2010-11-211-18/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86596 | ezio.melotti | 2010-11-20 21:04:17 +0200 (Sat, 20 Nov 2010) | 1 line #9424: Replace deprecated assert* methods in the Python test suite. ........
| | * Merged revisions 84836 via svnmerge fromMatthias Klose2010-09-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r84836 | matthias.klose | 2010-09-15 15:06:09 +0200 (Mi, 15 Sep 2010) | 3 lines Try harder on issue #7356: ctypes.util: Make parsing of ldconfig output independent of the locale. Set LC_ALL=C too. ........
| | * Merged revisions ↵Florent Xicluna2010-08-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 83212,83829,83833,83838-83839,83878,84019,84025,84028,84032,84036 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r83212 | florent.xicluna | 2010-07-28 18:39:41 +0200 (mer., 28 juil. 2010) | 2 lines Syntax cleanup. ........ r83829 | florent.xicluna | 2010-08-08 18:16:07 +0200 (dim., 08 août 2010) | 2 lines Use unittest specific methods for some urllib test cases. And replace urllib2 with urllib.request in comments. ........ r83833 | florent.xicluna | 2010-08-08 18:25:27 +0200 (dim., 08 août 2010) | 2 lines Add test case for the HTTPResponse being an iterable. Follow-up of issue #4608. ........ r83838 | florent.xicluna | 2010-08-08 20:03:44 +0200 (dim., 08 août 2010) | 2 lines Typo. ........ r83839 | florent.xicluna | 2010-08-08 20:06:13 +0200 (dim., 08 août 2010) | 2 lines Issue #7564: Skip test_ioctl if another process is attached to /dev/tty. ........ r83878 | florent.xicluna | 2010-08-09 10:29:08 +0200 (lun., 09 août 2010) | 1 line Merge the 2to3 script from /sandbox/trunk/2to3/2to3, revision 72867 (latest). ........ r84019 | florent.xicluna | 2010-08-14 17:56:42 +0200 (sam., 14 août 2010) | 11 lines Merged manually from 2.7 branch to 3.x trunk. ------------------------------------------------------------------------ r79925 | nick.coghlan | 2010-04-10 16:24:36 +0200 (sam. 10 avril 2010) Try to turn some buildbots green by allowing test_multiprocessing to pass even if it hits the sys.exc_clear code in the threading module, and improve the test coverage by making the ctypes dependencies a bit more granular (two of the cited ctypes objects don't exist on my system) ------------------------------------------------------------------------ ........ r84025 | florent.xicluna | 2010-08-14 18:56:27 +0200 (sam., 14 août 2010) | 1 line List Misc/python-config.in in Misc/README. Fix few typos. ........ r84028 | florent.xicluna | 2010-08-14 19:02:49 +0200 (sam., 14 août 2010) | 1 line Fix order. ........ r84032 | florent.xicluna | 2010-08-14 19:15:31 +0200 (sam., 14 août 2010) | 1 line Convert to spaces. ........ r84036 | florent.xicluna | 2010-08-14 20:03:19 +0200 (sam., 14 août 2010) | 1 line Remove bad merge (from svnmerge r82301) ........
| | * Merged revisions 78980 via svnmerge fromMatthias Klose2010-03-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r78980 | matthias.klose | 2010-03-15 14:46:04 +0100 (Mo, 15 Mär 2010) | 10 lines Merged revisions 78979 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r78979 | matthias.klose | 2010-03-15 14:42:23 +0100 (Mo, 15 Mär 2010) | 3 lines - Issue #7356: ctypes.util: Make parsing of ldconfig output independent of the locale. ........ ................
| | * Merged revisions 78382 via svnmerge fromThomas Heller2010-02-231-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r78382 | thomas.heller | 2010-02-23 21:25:02 +0100 (Di, 23 Feb 2010) | 11 lines Merged revisions 78380 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r78380 | thomas.heller | 2010-02-23 21:11:44 +0100 (Di, 23 Feb 2010) | 4 lines ctypes CThunkObject was not registered correctly with the cycle garbage collector, leading to possible leaks when using callback functions. ........ ................
| | * Merged revisions 75064 via svnmerge fromEzio Melotti2009-09-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r75064 | ezio.melotti | 2009-09-26 00:35:24 +0300 (Sat, 26 Sep 2009) | 1 line fix print statement ........
| | * Merged revisions 74922 via svnmerge fromThomas Heller2009-09-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r74922 | thomas.heller | 2009-09-18 22:08:39 +0200 (Fr, 18 Sep 2009) | 10 lines Merged revisions 74921 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r74921 | thomas.heller | 2009-09-18 22:05:44 +0200 (Fr, 18 Sep 2009) | 3 lines Issue #4606: Passing 'None' if ctypes argtype is set to POINTER(...) does now always result in NULL. ........ ................
| | * Merged revisions 74918 via svnmerge fromThomas Heller2009-09-181-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r74918 | thomas.heller | 2009-09-18 21:05:13 +0200 (Fr, 18 Sep 2009) | 11 lines Merged revisions 74917 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r74917 | thomas.heller | 2009-09-18 20:55:17 +0200 (Fr, 18 Sep 2009) | 3 lines Issue #5042: Structure sub-subclass does now initialize correctly with base class positional arguments. ........ Also made small stylistic changes. ................
| | * Merged revisions 74907 via svnmerge fromEric Smith2009-09-181-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r74907 | eric.smith | 2009-09-18 09:23:13 -0400 (Fri, 18 Sep 2009) | 1 line Issue #6882: Import uuid creates zombies processes. I used a slightly different patch than the one attached to the issue, to be consistent with the style in the rest of the module. ........
| | * Merged revisions 74664 via svnmerge fromThomas Heller2009-09-0413-56/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r74664 | thomas.heller | 2009-09-04 20:24:41 +0200 (Fr, 04 Sep 2009) | 1 line Issue 6239: ctypes.c_char_p return value must return bytes. ........
| | * Merged revisions 73718,73721,73723 via svnmerge fromGeorg Brandl2009-08-131-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://svn.python.org/python/branches/py3k ................ r73718 | benjamin.peterson | 2009-07-01 01:35:19 +0200 (Mi, 01 Jul 2009) | 9 lines Merged revisions 73717 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r73717 | benjamin.peterson | 2009-06-30 18:30:12 -0500 (Tue, 30 Jun 2009) | 1 line use assert* methods in test_unittest ........ ................ r73721 | benjamin.peterson | 2009-07-01 02:43:10 +0200 (Mi, 01 Jul 2009) | 11 lines Merged revisions 73720 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r73720 | benjamin.peterson | 2009-06-30 19:36:41 -0500 (Tue, 30 Jun 2009) | 4 lines fix a few cases where automated fail -> assert translation messed up Thanks Joe Amenta ........ ................ r73723 | benjamin.peterson | 2009-07-01 02:45:43 +0200 (Mi, 01 Jul 2009) | 1 line remove use of failIf ................
| | * Merged revisions 73715 via svnmerge fromGeorg Brandl2009-08-1347-933/+933
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://svn.python.org/python/branches/py3k ........ r73715 | benjamin.peterson | 2009-07-01 01:06:06 +0200 (Mi, 01 Jul 2009) | 1 line convert old fail* assertions to assert* ........
* | | Revert r88639 (the optimization changes behaviour and breaks buildbots)Antoine Pitrou2011-02-262-18/+7
| | |
* | | Issue #11258: Speed up ctypes.util.find_library() under Linux a lot. PatchAntoine Pitrou2011-02-262-7/+18
| | | | | | | | | | | | by Jonas H.
* | | Issue #10992: make tests pass when run under coverage.Brett Cannon2011-02-224-0/+10
|/ / | | | | | | | | | | | | | | | | | | Various tests fail when run under coverage. A primary culprit is refcount tests which fail as the counts are thrown off by the coverage code. A new decorator -- test.support.refcount_test -- is used to decorate tests which test refcounts and to skip them when running under coverage. Other tests simply fail because of changes in the system (e.g., __local__ suddenly appearing). Thanks to Kristian Vlaardingerbroek for helping to diagnose the test failures.
* | Issue #8275: Fix passing of callback arguments with ctypes under Win64.Antoine Pitrou2011-01-311-0/+36
| | | | | | | | Patch by Stan Mihai. Ok'ed by Georg.