summaryrefslogtreecommitdiff
path: root/Lib/ctypes
Commit message (Collapse)AuthorAgeFilesLines
* Issue #29219: Fixed infinite recursion in the repr of uninitializedSerhiy Storchaka2017-01-131-0/+4
|\ | | | | | | ctypes.CDLL instances.
| * Issue #29219: Fixed infinite recursion in the repr of uninitializedSerhiy Storchaka2017-01-1313-56/+97
| |\ | | | | | | | | | ctypes.CDLL instances.
| * | Issue #29219: Fixed infinite recursion in the repr of uninitializedSerhiy Storchaka2017-01-131-0/+4
| | | | | | | | | | | | ctypes.CDLL instances.
* | | Issue #25659: Merge ctypes fix from 3.6Martin Panter2016-11-201-0/+8
|\ \ \ | | |/ | |/|
| * | Issue #25659: Merge ctypes fix from 3.5Martin Panter2016-11-201-0/+8
| |\ \ | | |/
| | * Issue #25659: Change assert to TypeError in from_buffer/_copy()Martin Panter2016-11-201-0/+8
| | | | | | | | | | | | Based on suggestion by Eryk Sun.
* | | Remove disabled test codeMartin Panter2016-11-051-4/+0
|/ / | | | | | | | | Loading Unix libraries via getattr() was disabled before ctypes was added to Python.
* | Merge test cleanup from 3.5 into 3.6Martin Panter2016-09-2913-56/+97
|\ \ | |/ |/|
| * Issue #18893: Merge from 3.5Berker Peksag2016-09-2613-56/+97
| |\
| | * Issue #27355: Import no longer neededMartin Panter2016-09-061-1/+1
| | |
| | * Issue #27355: Removed support for Windows CE. It was never finished,Larry Hastings2016-09-055-35/+15
| | | | | | | | | | | | and Windows CE is no longer a relevant platform for Python.
| | * Closes #9998: Allowed find_library to search additional locations for libraries.Vinay Sajip2016-08-172-1/+68
| | |
| | * Closes #20160: Merged fix from 3.5.Vinay Sajip2016-08-051-0/+35
| | |\
| | * \ Issue #27626: Merge spelling fixes from 3.5Martin Panter2016-07-282-2/+2
| | |\ \
| | * | | Backed out changeset af29d89083b3 (closes #25548) (closes #27498)Benjamin Peterson2016-07-131-5/+5
| | | | |
| | * | | Issue #27343: Fixed error message for conflicting initializers of ↵Serhiy Storchaka2016-06-189-22/+16
| | |\ \ \ | | | | | | | | | | | | | | | | | | ctypes.Structure.
| | | * \ \ Issue #22636: Merge ctypes.util from 3.5Martin Panter2016-06-149-22/+16
| | | |\ \ \
| | | | * \ \ Issue #22636: Merge ctypes.util shell injection fixes from 3.5Martin Panter2016-06-142-44/+82
| | | | |\ \ \
| | | | * | | | Issue #25548: Showing memory address of class objects in replKushal Das2016-06-041-5/+5
| | | | | | | |
| | | | * | | | Issue #27125: Merge typo fixes from 3.5Martin Panter2016-05-309-19/+13
| | | | |\ \ \ \
| | | | | * | | | Issue #26647: Python interpreter now uses 16-bit wordcode instead of bytecode.Serhiy Storchaka2016-05-241-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Patch by Demur Rumed.
| | | | | * | | | Issue #25533: Merge frozen module docs from 3.5Martin Panter2016-05-151-5/+6
| | | | | |\ \ \ \
| | | | | * | | | | Remove old Python 2 compatibility from ctypes testMartin Panter2016-05-141-5/+2
| | | | | | | | | |
| | | | | * | | | | Issue #24114: Fix an uninitialized variable in `ctypes.util`.Meador Inge2016-04-307-11/+8
| | | | | |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The bug only occurs on SunOS when the ctypes implementation searches for the `crle` program. Patch by Xiang Zhang. Tested on SunOS by Kees Bos.
| | | | | | * | | | | Remove more unused imports in tests.Serhiy Storchaka2016-04-252-2/+1
| | | | | | | | | | |
| | | | | | * | | | | Issue #23277: Remove unused imports in tests.Serhiy Storchaka2016-04-241-3/+3
| | | | | | | | | | |
| | | | | | * | | | | Issue #23277: Remove unused sys and os importsBerker Peksag2016-04-244-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Patch by Jon Dufresne.
| | | | | | * | | | | Issue #21042: Revert Linux find_library() to return just filenameMartin Panter2016-03-172-25/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts most of revision 3092cf163eb4. The change worked on x86 architectures, but did not work on ARM, probably due to extra ABI flags in the ldconfig output.
| | | | | | * | | | | Issue #21042: Return full path in ctypes.util.find_library() on LinuxMartin Panter2016-03-102-18/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Patch by Tam?s Bence Gedai.
* | | | | | | | | | | Remove disabled ctypes testMartin Panter2016-09-291-24/+1
|/ / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The test was commented out in 2005 before ctypes was added to Python, because the ?cdll? attribute loading feature ?will no longer work this way?: http://svn.python.org/view?view=revision&revision=49102
* | | | | | | | | | Issue #18893: Fix invalid exception handling in Lib/ctypes/macholib/dyld.pyBerker Peksag2016-09-261-2/+3
| |_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | Patch by Madison May.
* | | | | | | | | Issue #20160: Merged fix from 3.4.Vinay Sajip2016-08-051-0/+35
|\ \ \ \ \ \ \ \ \ | |_|_|_|_|_|_|_|/ |/| | | | | | | |
| * | | | | | | | Issue #20160: Merged fix from 3.3.Vinay Sajip2016-08-051-0/+35
| |\ \ \ \ \ \ \ \
| | * | | | | | | | Issue #20160: Handled passing of large structs to callbacks correctly.Vinay Sajip2016-08-051-0/+35
| | | | | | | | | |
* | | | | | | | | | Issue #27626: Spelling fixes in docs, comments and internal namesMartin Panter2016-07-282-2/+2
| |_|/ / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | Based on patch by Ville Skytt?.
* | | | | | | | | Issue #27343: Fixed error message for conflicting initializers of ↵Serhiy Storchaka2016-06-181-3/+3
| |_|/ / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | ctypes.Structure.
* | | | | | | | Issue #22636: Handle OSError from subprocess, e.g. if command not foundMartin Panter2016-06-141-19/+35
| |_|_|_|_|_|/ |/| | | | | |
* | | | | | | Issue #22636: avoid using a shell in the ctypes.util moduleMartin Panter2016-06-142-44/+82
| |_|/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace os.popen() with subprocess.Popen. Based on patch by Victor Stinner. If the "gcc", "cc" or "objdump" command is not available, the code was supposed to raise an OSError exception. But there was a bug in the code. The shell code returns the exit code 10 if the required command is missing, and the code tries to check for the status 10. The problem is that os.popen() doesn't return the exit code directly, but a status which should be processed by os.WIFEXITED() and os.WEXITSTATUS(). In practice, the exception was never raised. The OSError exception was not documented and ctypes.util.find_library() is expected to return None if the library is not found.
* | | | | | Issue #27125: Remove duplicated words from documentation and commentsMartin Panter2016-05-301-1/+1
| |_|_|_|/ |/| | | |
* | | | | Issue #25533: Update documentation regarding the frozen modules tableMartin Panter2016-05-151-5/+6
| |_|/ / |/| | | | | | | | | | | | | | | * "ctypes" documentation was using Python 2 bytes-str equivalence. * PyImport_FrozenModules is a pointer to const as of Python 3.4
* | | | Issue #24114: Fix an uninitialized variable in `ctypes.util`.Meador Inge2016-04-301-0/+1
| |_|/ |/| | | | | | | | | | | | | | The bug only occurs on SunOS when the ctypes implementation searches for the `crle` program. Patch by Xiang Zhang. Tested on SunOS by Kees Bos.
* | | Issue #26304: Change "allows to <verb>" to "allows <verb>ing" or similarMartin Panter2016-02-101-2/+2
| | | | | | | | | | | | | | | The original form is incorrect grammar and feels awkward, even though the meaning is clear.
* | | Issue #19023: Document ctypes array and pointer classesMartin Panter2016-01-292-6/+15
| | | | | | | | | | | | Also add some more tests. Based on patch by Sye van der Veen.
* | | #24789: fix docstring of ctypes.create_string_buffer. Patch by Matheus ↵Ezio Melotti2016-01-091-1/+1
| | | | | | | | | | | | Vieira Portela.
* | | Issue #25622: Use repr(bytes) to avoid BytesWarningMartin Panter2015-11-261-1/+1
| | |
* | | Issue #25622: Merge ctypes test from 3.4 into 3.5Martin Panter2015-11-261-2/+1
|\ \ \ | |/ /
| * | Issue #25622: Rename to PythonValuesTestCase and enable for non-WindowsMartin Panter2015-11-261-2/+1
| | |
* | | Issue #25498: Update error message for 3.5Martin Panter2015-11-131-1/+1
| | |
* | | Issue #25498: Merge ctypes crash fix from 3.4 into 3.5Martin Panter2015-11-131-2/+29
|\ \ \ | |/ /
| * | Issue #25498: Fix GC crash due to ctypes objects wrapping a memoryviewMartin Panter2015-11-131-2/+29
| | | | | | | | | | | | | | | This was a regression caused by revision 1da9630e9b7f. Based on patch by Eryksun.