Amaury Forgeot d'Arc
864741b2c7
Issue #13350 : Replace most usages of PyUnicode_Format by PyUnicode_FromFormat.
2011-11-06 15:10:48 +01:00
Martin v. Löwis
bd928fef42
Rename _Py_identifier to _Py_IDENTIFIER.
2011-10-14 10:20:37 +02:00
Martin v. Löwis
afe55bba33
Add API for static strings, primarily good for identifiers.
...
Thanks to Konrad Schöbel and Jasper Schulz for helping with the mass-editing.
2011-10-09 10:38:36 +02:00
Meador Inge
29f43f7368
Issue #12881 : ctypes: Fix segfault with large structure field names.
2011-10-03 21:48:30 -05:00
Meador Inge
1efb33a682
Issue #12881 : ctypes: Fix segfault with large structure field names.
2011-10-03 21:44:22 -05:00
Victor Stinner
67002af323
Check error when calling PyUnicode_AppendAndDel()
2011-10-02 20:35:10 +02:00
Martin v. Löwis
d63a3b8beb
Implement PEP 393.
2011-09-28 07:41:54 +02:00
Meador Inge
48d49497c5
Issue #13013 : ctypes: Fix a reference leak in PyCArrayType_from_ctype.
...
Thanks to Suman Saha for finding the bug and providing a patch.
2011-09-27 20:52:04 -05:00
Meador Inge
b86ecf4bd1
Issue #13013 : ctypes: Fix a reference leak in PyCArrayType_from_ctype.
...
Thanks to Suman Saha for finding the bug and providing a patch.
2011-09-27 20:45:30 -05:00
Amaury Forgeot d'Arc
65604b51e0
Merge 3.2: Issue #12483 : ctypes: Fix a crash when the destruction of a callback
...
object triggers the garbage collector.
2011-09-12 21:09:12 +02:00
Amaury Forgeot d'Arc
bbe46d63ee
Issue #12483 : ctypes: Fix a crash when the destruction of a callback
...
object triggers the garbage collector.
2011-09-12 21:03:36 +02:00
Amaury Forgeot d'Arc
842d921a79
ctypes: Slightly better error message when a struct field name is not a string.
2011-09-02 23:07:54 +02:00
Amaury Forgeot d'Arc
9b20e27c01
Merge from 3.2: Issue #12764 : Fix a crash in ctypes when the name of a
...
Structure field is not a string.
2011-09-02 20:43:59 +02:00
Amaury Forgeot d'Arc
02dd539dbb
Issue #12764 : Fix a crash in ctypes when the name of a Structure field is not
...
a string.
2011-09-02 20:39:40 +02:00
Amaury Forgeot d'Arc
dd2f8b0b77
Merge from 3.2:
...
- 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.
2011-08-30 22:07:20 +02:00
Amaury Forgeot d'Arc
faecc38809
Issue #11241 : subclasses of ctypes.Array can now be subclassed.
2011-08-30 22:02:51 +02:00
Amaury Forgeot d'Arc
326e189410
Issue #9651 : Fix a crash when ctypes.create_string_buffer(0) was passed to
...
some functions like file.write().
2011-08-30 21:40:20 +02:00
Barry Warsaw
2ebada4233
- Issue #10309 : Define _GNU_SOURCE so that mremap() gets the proper
...
signature. Without this, architectures where sizeof void* != sizeof int are
broken. Patch given by Hallvard B Furuseth.
2011-07-19 19:23:56 -04:00
Barry Warsaw
d460a76e9e
- Issue #10309 : Define _GNU_SOURCE so that mremap() gets the proper
...
signature. Without this, architectures where sizeof void* != sizeof int are
broken. Patch given by Hallvard B Furuseth.
2011-07-19 18:28:30 -04:00
Benjamin Peterson
eb2389be0e
merge 3.2
2011-03-26 18:18:09 -05:00
Benjamin Peterson
1a07f07337
merge 3.1
2011-03-26 18:17:05 -05:00
Benjamin Peterson
39530f8cbe
always check return value of PyObject_IsInstance for error
2011-03-26 18:04:09 -05:00
Benjamin Peterson
8d6c62dd89
check possible recursive _as_parameter_ to prevent segfault ( closes #1838 )
2011-03-26 17:56:28 -05:00
Ezio Melotti
3b3499ba69
#11565 : Merge with 3.1.
2011-03-16 11:35:38 +02:00
Ezio Melotti
13925008dc
#11565 : Fix several typos. Patch by Piotr Kasprzyk.
2011-03-16 11:05:33 +02:00
Ezio Melotti
b78b4d7bf5
Merge with 3.2
2011-03-15 19:19:04 +02:00
Ezio Melotti
8beaa6c2ec
Revert typo fixes in _cytpes/libffi*
2011-03-15 19:10:51 +02:00
Ezio Melotti
4969f709cc
#11515 : Merge with 3.1.
2011-03-15 05:59:46 +02:00
Ezio Melotti
42da663e6f
#11515 : fix several typos. Patch by Piotr Kasprzyk.
2011-03-15 05:18:48 +02:00
Ezio Melotti
b88ed1549e
#11565 : Merge with 3.2.
2011-03-16 11:38:59 +02:00
Ezio Melotti
3796befe37
Merge with 3.2
2011-03-15 19:21:03 +02:00
Ezio Melotti
373089239b
#11515 : Merge with 3.2.
2011-03-15 06:03:08 +02:00
Victor Stinner
f3fd733f92
Remove useless argument of _PyUnicode_AsDefaultEncodedString()
2011-03-02 01:03:11 +00:00
Brett Cannon
b94767ff44
Issue #8914 : fix various warnings from the Clang static analyzer v254.
2011-02-22 20:15:44 +00:00
Antoine Pitrou
2e811c92c7
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.
........
2011-01-31 21:36:33 +00:00
Antoine Pitrou
0ea622a5c8
Issue #8275 : Fix passing of callback arguments with ctypes under Win64.
...
Patch by Stan Mihai. Ok'ed by Georg.
2011-01-31 21:08:57 +00:00
Victor Stinner
0fcab4a3ed
Issue #9566 : use Py_ssize_t instead of int
2011-01-04 12:59:15 +00:00
Martin v. Löwis
4d0d471a80
Merge branches/pep-0384.
2010-12-03 20:14:31 +00:00
Georg Brandl
d49bf5e8a5
Fix type of hash function.
2010-10-18 07:30:06 +00:00
Amaury Forgeot d'Arc
20f11fe43c
Fix compilation warning in _ctypes module on Window
2010-10-17 08:34:22 +00:00
Georg Brandl
2a531395cd
Get rid of a "unused static function" warning.
2010-10-16 20:33:11 +00:00
Victor Stinner
beb4135b8c
PyUnicode_AsWideCharString() takes a PyObject*, not a PyUnicodeObject*
...
All unicode functions uses PyObject* except PyUnicode_AsWideChar(). Fix the
prototype for the new function PyUnicode_AsWideCharString().
2010-10-07 01:02:42 +00:00
Victor Stinner
749261e241
Issue #8670 : ctypes.c_wchar supports non-BMP characters with 32 bits wchar_t
2010-10-02 11:25:35 +00:00
Victor Stinner
4c2e4fa242
Issue #9979 : Use PyUnicode_AsWideCharString() in _ctypes module
...
* Convert unicode to wide character string before creating the PyCapsule
object
* Catch integer overflow
* Avoid useless memset()
* Prepare the support of surrogates
2010-09-29 10:37:16 +00:00
Hirokazu Yamamoto
ffa272d4d8
Merged revisions 83841,84741 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r83841 | thomas.heller | 2010-08-09 03:16:20 +0900 | 2 lines
Fix issue6869: refcount problem in the _ctypes extension.
........
r84741 | hirokazu.yamamoto | 2010-09-13 01:06:18 +0900 | 2 lines
Fixed refcount bug. I placed Py_INCREF in create_comerror() for compatibility
with Python2.7.
........
2010-09-12 16:19:05 +00:00
Hirokazu Yamamoto
34aa30ca2b
Fixed refcount bug. I placed Py_INCREF in create_comerror() for compatibility
...
with Python2.7.
2010-09-12 16:06:18 +00:00
Ronald Oussoren
2decf22b95
Fix for issue9662, patch by Łukasz Langa in issue5504.
2010-09-05 18:25:59 +00:00
Daniel Stutzbach
8515eaefda
Issue 8781: On systems a signed 4-byte wchar_t and a 4-byte Py_UNICODE, use memcpy to convert between the two (as already done when wchar_t is unsigned)
2010-08-24 21:57:33 +00:00
Antoine Pitrou
e647b4766d
Fix buildbot issues due to _ctypes failing to compile in 3.1.
...
Recorded rollback of revisions 83837,83841 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
2010-08-10 00:22:01 +00:00
Thomas Heller
51d19cf227
Merged revisions 83837,83841 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r83837 | thomas.heller | 2010-08-08 19:58:53 +0200 (So, 08 Aug 2010) | 3 lines
Fix issue5504: ctypes does now work with systems where mmap can't be
PROT_WRITE and PROT_EXEC.
........
r83841 | thomas.heller | 2010-08-08 20:16:20 +0200 (So, 08 Aug 2010) | 2 lines
Fix issue6869: refcount problem in the _ctypes extension.
........
2010-08-08 18:24:06 +00:00