Meador Inge
ff337ccd4b
Issue #13979 : Fix ctypes.util.find_library ldconfig regex
14 years ago
Meador Inge
25e70fd133
Issue #12142 : Fixed reference cycle when importing ctypes
14 years ago
Meador Inge
0e30317891
Issue #13380 : add an internal function for resetting the ctypes caches
14 years ago
Meador Inge
ad349a190e
Issue #12881 : ctypes: Fix segfault with large structure field names.
14 years ago
Amaury Forgeot d'Arc
aa3af53f1f
Remove trailing spaces
15 years ago
Amaury Forgeot d'Arc
439c25eb9e
Issue #12483 : ctypes: Fix a crash when the destruction of a callback
object triggers the garbage collector.
15 years ago
Amaury Forgeot d'Arc
cf316a171e
Issue #12764 : Fix a crash in ctypes when the name of a Structure field is not
a string.
15 years ago
Amaury Forgeot d'Arc
3d7f236329
Issue #9651 : Fix a crash when ctypes.create_string_buffer(0) was passed to
some functions like file.write().
15 years ago
Benjamin Peterson
2e7ea507d6
carefully cleanup pointer cache after creating struct pointers
15 years ago
Victor Stinner
bf547fd3f2
Close #4376 : ctypes now supports nested structures in a endian different than
the parent structure. Patch by Vlad Riscutia.
15 years ago
Benjamin Peterson
f21ad92351
check possible recursive _as_parameter_ to prevent segfault ( closes #1838 )
15 years ago
Ezio Melotti
c2077b0d9b
#11565 : Fix several typos. Patch by Piotr Kasprzyk.
15 years ago
Ezio Melotti
24b07bcba3
#11515 : fix several typos. Patch by Piotr Kasprzyk.
15 years ago
Antoine Pitrou
820021ebd8
Merged revisions 88284 via svnmerge from
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.
........
15 years ago
Ezio Melotti
2623a37852
Merged revisions 86596 via svnmerge from
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.
........
15 years ago
Matthias Klose
19f9810a1a
Try harder on issue #7356 : ctypes.util: Make parsing of ldconfig output
independent of the locale. Set LC_ALL=C too.
16 years ago
Tim Golden
3523443f77
#9055 : remove assertion at the end of test_8959_b since the test is about crashing, not about counting and is difficult to manage when run as a service
16 years ago
Ezio Melotti
26dfaacdda
Merged revisions 78757 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r78757 | florent.xicluna | 2010-03-07 14:14:25 +0200 (Sun, 07 Mar 2010) | 2 lines
Fix some py3k warnings in the standard library.
........
16 years ago
Ezio Melotti
3efafd7749
Merged revisions 77942,79023 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r77942 | ezio.melotti | 2010-02-03 07:37:26 +0200 (Wed, 03 Feb 2010) | 1 line
#7092 : Silence more py3k warnings. Patch by Florent Xicluna.
........
r79023 | ezio.melotti | 2010-03-17 15:52:48 +0200 (Wed, 17 Mar 2010) | 1 line
#7092 : silence some more py3k warnings.
........
16 years ago
Thomas Heller
a45e6d5791
Add tests for problems reported in issue 8959.
16 years ago
Thomas Heller
f180099ec6
Fix #8959 by reverting revision 80761.
16 years ago
Thomas Heller
06a7e2069a
On Windows, ctypes does no longer check the stack before and after
calling a foreign function. This allows to use the unmodified libffi
library.
Remove most files from _ctypes/libffi_msvc, only two include files
stay (updated from _ctypes/libffi/...). Other files are used in the
cross-platform _ctypes/libffi directory.
16 years ago
Victor Stinner
47c884129d
Partial revert of r80556 (Issue #7449 , part 5, fix ctypes test)
Rewrite r80556: the thread test have to be executed just after the test on
libc_open() and so the test cannot be splitted in two functions (without
duplicating code, and I don't want to duplicate code).
16 years ago
Victor Stinner
9751472001
Issue #7449 , part 5: split Test.test_open() of ctypes/test/test_errno.py
* Split Test.test_open() in 2 functions: test_open() and test_thread_open()
* Skip test_open() and test_thread_open() if we are unable to find the C
library
* Skip test_thread_open() if thread support is disabled
* Use unittest.skipUnless(os.name == "nt", ...) on test_GetLastError()
16 years ago
Mark Dickinson
65605f7a5f
Use some more interesting test values for (unsigned) long long ctypes tests,
in the hope of getting more information about the test_ctypes failures
on Sparc (see issue #8314 ).
16 years ago
Thomas Heller
b102ddadcb
Revert rev. 79509; ctypes doesn't build on linux.
16 years ago
Thomas Heller
5006ba0fef
Merged revisions 79115,79424,79491 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/branch_libffi-3_0_10-win
........
r79115 | thomas.heller | 2010-03-19 22:14:47 +0100 (Fr, 19 Mrz 2010) | 7 lines
Work in progress. 2 tests fail on x86/win32 because the stack
checking code in ffi_call_win32 is not yet implemented.
Remove most files from _ctypes/libffi_msvc, only two include files
stay (updated from _ctypes/libffi/...). Other files are used in the
cross-platform _ctypes/libffi directory.
........
r79424 | thomas.heller | 2010-03-25 19:28:02 +0100 (Do, 25 Mrz 2010) | 1 line
Build _ctypes on Win64.
........
r79491 | thomas.heller | 2010-03-29 21:30:33 +0200 (Mo, 29 Mrz 2010) | 4 lines
On Windows, ctypes does no longer check the stack before and after
calling a foreign function.
This allows to use the unmodified libffi library.
........
16 years ago
Florent Xicluna
9e7a4c9738
Issue #7703 : ctypes supports both buffer() and memoryview(). The former is deprecated.
Complement of r79288.
16 years ago
Florent Xicluna
f08a0176a7
Get rid of buffer() in test_ctypes: backport the 3.x tests.
16 years ago
Matthias Klose
2db7bdf8b9
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.
........
16 years ago
Collin Winter
786431282b
Avoid hardcoding refcounts in tests.
16 years ago
Ezio Melotti
d80b4bfd0b
#7092 : silence some more py3k warnings.
16 years ago
Matthias Klose
358e7ff36b
- Issue #7356 : ctypes.util: Make parsing of ldconfig output independent of
the locale.
16 years ago
Florent Xicluna
1f3b4e12e8
Fix some py3k warnings in the standard library.
16 years ago
Gregory P. Smith
3c699d334a
Adds c_ssize_t to ctypes. issue 6729.
16 years ago
Thomas Heller
d517d0848b
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.
........
16 years ago
Thomas Heller
92bd059c67
ctypes CThunkObject was not registered correctly with the cycle
garbage collector, leading to possible leaks when using callback
functions.
16 years ago
Ezio Melotti
dde5b94875
#7092 : Silence more py3k warnings. Patch by Florent Xicluna.
16 years ago
Georg Brandl
9d084f9885
Merged revisions 75593 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r75593 | georg.brandl | 2009-10-22 09:06:49 +0200 (Do, 22 Okt 2009) | 1 line
Revert unintended change.
........
16 years ago
Georg Brandl
5d2eb34f5c
Merged revisions 75363,75365,75376,75392,75394,75403,75418,75484,75572,75580,75590,75592,75594-75596,75600,75602-75603,75605-75607,75610-75613,75616-75617,75623,75627,75647 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r75363 | georg.brandl | 2009-10-11 20:31:23 +0200 (So, 11 Okt 2009) | 1 line
Add the Python FAQ lists to the documentation. Copied from sandbox/faq. Many thanks to AMK for the preparation work.
........
r75365 | georg.brandl | 2009-10-11 22:16:16 +0200 (So, 11 Okt 2009) | 1 line
Fix broken links found by "make linkcheck". scipy.org seems to be done right now, so I could not verify links going there.
........
r75376 | benjamin.peterson | 2009-10-12 03:26:07 +0200 (Mo, 12 Okt 2009) | 1 line
platform we don't care about
........
r75392 | andrew.kuchling | 2009-10-13 18:11:49 +0200 (Di, 13 Okt 2009) | 1 line
Various link, textual, and markup fixes
........
r75394 | georg.brandl | 2009-10-13 20:10:59 +0200 (Di, 13 Okt 2009) | 1 line
Fix markup.
........
r75403 | georg.brandl | 2009-10-14 17:57:46 +0200 (Mi, 14 Okt 2009) | 1 line
#7126 : os.environ changes *do* take effect in subprocesses started with os.system().
........
r75418 | georg.brandl | 2009-10-14 20:48:32 +0200 (Mi, 14 Okt 2009) | 1 line
#7116 : str.join() takes an iterable.
........
r75484 | georg.brandl | 2009-10-18 09:58:12 +0200 (So, 18 Okt 2009) | 1 line
Fix missing word.
........
r75572 | benjamin.peterson | 2009-10-20 23:55:17 +0200 (Di, 20 Okt 2009) | 1 line
clarify buffer arg #7178
........
r75580 | georg.brandl | 2009-10-21 09:15:59 +0200 (Mi, 21 Okt 2009) | 1 line
#7170 : fix explanation about non-weakrefable builtin types.
........
r75590 | benjamin.peterson | 2009-10-22 04:36:47 +0200 (Do, 22 Okt 2009) | 1 line
rewrite to be nice to other implementations
........
r75592 | georg.brandl | 2009-10-22 09:05:48 +0200 (Do, 22 Okt 2009) | 1 line
Fix punctuation.
........
r75594 | georg.brandl | 2009-10-22 09:56:02 +0200 (Do, 22 Okt 2009) | 1 line
Fix markup.
........
r75595 | georg.brandl | 2009-10-22 09:56:56 +0200 (Do, 22 Okt 2009) | 1 line
Fix duplicate target.
........
r75596 | georg.brandl | 2009-10-22 10:05:04 +0200 (Do, 22 Okt 2009) | 1 line
Add a new directive marking up implementation details and start using it.
........
r75600 | georg.brandl | 2009-10-22 13:01:46 +0200 (Do, 22 Okt 2009) | 1 line
Make it more robust.
........
r75602 | georg.brandl | 2009-10-22 13:28:06 +0200 (Do, 22 Okt 2009) | 1 line
Document new directive.
........
r75603 | georg.brandl | 2009-10-22 13:28:23 +0200 (Do, 22 Okt 2009) | 1 line
Allow short form with text as argument.
........
r75605 | georg.brandl | 2009-10-22 13:48:10 +0200 (Do, 22 Okt 2009) | 1 line
Use "impl-detail" directive where applicable.
........
r75606 | georg.brandl | 2009-10-22 17:00:06 +0200 (Do, 22 Okt 2009) | 1 line
#6324 : membership test tries iteration via __iter__.
........
r75607 | georg.brandl | 2009-10-22 17:04:09 +0200 (Do, 22 Okt 2009) | 1 line
#7088 : document new functions in signal as Unix-only.
........
r75610 | georg.brandl | 2009-10-22 17:27:24 +0200 (Do, 22 Okt 2009) | 1 line
Reorder __slots__ fine print and add a clarification.
........
r75611 | georg.brandl | 2009-10-22 17:42:32 +0200 (Do, 22 Okt 2009) | 1 line
#7035 : improve docs of the various <method>_errors() functions, and give them docstrings.
........
r75612 | georg.brandl | 2009-10-22 17:52:15 +0200 (Do, 22 Okt 2009) | 1 line
#7156 : document curses as Unix-only.
........
r75613 | georg.brandl | 2009-10-22 17:54:35 +0200 (Do, 22 Okt 2009) | 1 line
#6977 : getopt does not support optional option arguments.
........
r75616 | georg.brandl | 2009-10-22 18:17:05 +0200 (Do, 22 Okt 2009) | 1 line
Add proper references.
........
r75617 | georg.brandl | 2009-10-22 18:20:55 +0200 (Do, 22 Okt 2009) | 1 line
Make printout margin important.
........
r75623 | georg.brandl | 2009-10-23 10:14:44 +0200 (Fr, 23 Okt 2009) | 1 line
#7188 : fix optionxform() docs.
........
r75627 | fred.drake | 2009-10-23 15:04:51 +0200 (Fr, 23 Okt 2009) | 2 lines
add further note about what's passed to optionxform
........
r75647 | georg.brandl | 2009-10-24 12:04:19 +0200 (Sa, 24 Okt 2009) | 1 line
Fix markup.
........
16 years ago
Eric Smith
84da0905e4
Per the discussion in issue6882, backport the try/finally work that was done to the py3k version (mostly in r59477, I think).
16 years ago
Georg Brandl
590a3675b7
Revert unintended change.
16 years ago
Georg Brandl
0968fd679b
Fix punctuation.
16 years ago
Thomas Heller
a6683c8de2
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.
........
17 years ago
Thomas Heller
6be522bfc2
Issue #4606 : Passing 'None' if ctypes argtype is set to POINTER(...)
does now always result in NULL.
17 years ago
Thomas Heller
820aefe29d
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.
........
17 years ago
Thomas Heller
7a352c0ed8
Issue #5042 : Structure sub-subclass does now initialize correctly with
base class positional arguments.
17 years ago
Thomas Heller
d8431ae3bd
Revert rev 74134, as it does not completely fixx issue #6493 .
17 years ago
Thomas Heller
6adda9641d
Issue #6493 : Fix a ctypes problem setting bitfields more than 31 bits
wide.
17 years ago
Benjamin Peterson
4d3f18f2ed
fix a few cases where automated fail -> assert translation messed up
Thanks Joe Amenta
17 years ago