summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Patch #1517790: It is now possible to use custom objects in the ctypesThomas Heller2006-07-061-3/+2
| | | | | | foreign function argtypes sequence as long as they provide a from_param method, no longer is it required that the object is a ctypes type.
* Revert the change done in svn revision 47206:Thomas Heller2006-07-061-14/+0
| | | | | | Add a new function uses_seh() to the _ctypes extension module. This will return True if Windows Structured Exception handling (SEH) is used when calling functions, False otherwise.
* - back out Expat change; the final fix to Expat will be differentFred Drake2006-07-062-3/+31
| | | | | - change the pyexpat wrapper to not be so sensitive to this detail of the Expat implementation (the ex-crasher test still passes)
* Fix the bitfield test when _ctypes is compiled with MingW. StructuresThomas Heller2006-07-051-2/+2
| | | | containing bitfields may have different layout on MSVC and MingW .
* Sync the darwin/x86 port libffi with the copy in PyObjC. This fixes a numberRonald Oussoren2006-07-042-84/+116
| | | | | | | | of bugs in that port. The most annoying ones were due to some subtle differences between the document ABI and the actual implementation :-( (there are no python unittests that fail without this patch, but without it some of libffi's unittests fail).
* Fix build problems with the platform SDK on windows. It is not sufficient ↵Kristján Valur Jónsson2006-07-031-1/+1
| | | | to test for the C compiler version when determining if we have the secure CRT from microsoft. Must test with an undocumented macro, __STDC_SECURE_LIB__ too.
* Add a new function uses_seh() to the _ctypes extension module. ThisThomas Heller2006-07-031-0/+14
| | | | | | | | | | | | will return True if Windows Structured Exception handling (SEH) is used when calling functions, False otherwise. Currently, only MSVC supports SEH. Fix the test so that it doesn't crash when run with MingW compiled _ctypes. Note that two tests are still failing when mingw is used, I suspect structure layout differences and function calling conventions between MSVC and MingW.
* Fixes so that _ctypes can be compiled with the MingW compiler.Thomas Heller2006-07-032-6/+4
| | | | | | | It seems that the definition of '__attribute__(x)' was responsible for the compiler ignoring the '__fastcall' attribute on the ffi_closure_SYSV function in libffi_msvc/ffi.c, took me quite some time to figure this out.
* Cleanup: Remove commented out code.Thomas Heller2006-07-031-22/+1
|
* Correct arithmetic in access on Win32. Fixes #1513646.Martin v. Löwis2006-07-021-1/+1
|
* The sqlite3 module did cut off data from the SQLite database at the first nullGerhard Häring2006-07-022-3/+4
| | | | character before sending it to a custom converter. This has been fixed now.
* SF bug #1296433 (Expat bug #1515266): Unchecked calls to character dataFred Drake2006-07-011-0/+2
| | | | | | | | handler would cause a segfault. This merges in Expat's lib/xmlparse.c revisions 1.154 and 1.155, which fix this and a closely related problem (the later does not affect Python). Moved the crasher test to the tests for xml.parsers.expat.
* Remove now-unused fidding with PY_FORMAT_SIZE_T.Tim Peters2006-06-301-4/+0
|
* Revert the use of PY_FORMAT_SIZE_T in PyErr_Format.Thomas Heller2006-06-301-1/+5
|
* Silence compiler warningNeal Norwitz2006-06-301-1/+6
|
* Protect the thread api calls in the _ctypes extension module withinThomas Heller2006-06-293-1/+22
| | | | #ifdef WITH_THREADS/#endif blocks. Found by Sam Rushing.
* Fix bug #1512695: cPickle.loads could crash if it was interrupted withNeal Norwitz2006-06-281-2/+6
| | | | | | a KeyboardInterrupt since PyTuple_Pack was passed a NULL. Will backport.
* [ 1295808 ] expat symbols should be namespaced in pyexpatv2.5b1Trent Mick2006-06-192-0/+128
| | | | (http://python.org/sf/1295808)
* Upgrade pyexpat to expat 2.0.0 (http://python.org/sf/1462338).Trent Mick2006-06-1911-308/+363
|
* Fixed a memory leak that was introduced with incorrect usage of the Python weakGerhard Häring2006-06-192-2/+2
| | | | | | reference API in pysqlite 2.2.1. Bumbed pysqlite version number to upcoming pysqlite 2.3.1 release.
* Patch #1506645: add Python wrappers for the curses functionsWalter Dörwald2006-06-191-1/+66
| | | | | is_term_resized, resize_term and resizeterm. This uses three separate configure checks (one for each function).
* Fix memory leak reported by valgrind while running test_subprocessNeal Norwitz2006-06-171-0/+2
|
* Speculative checkin (requires approval of Gerhard Haering)Neal Norwitz2006-06-151-0/+2
| | | | | | | | | This backs out the test changes in 46962 which prevented crashes by not running the tests via a version check. All the version checks added in that rev were removed from the tests. Code was added to the error handler in connection.c that seems to work with older versions of sqlite including 3.1.3.
* - Added version checks in C code to make sure we don't trigger bugs in olderGerhard Häring2006-06-141-4/+15
| | | | | | | | | | | SQLite versions. - Added version checks in test suite so that we don't execute tests that we know will fail with older (buggy) SQLite versions. Now, all tests should run against all SQLite versions from 3.0.8 until 3.3.6 (latest one now). The sqlite3 module can be built against all these SQLite versions and the sqlite3 module does its best to not trigger bugs in SQLite, but using SQLite 3.3.3 or later is recommended.
* Patch #1455898: Incremental mode for "mbcs" codec.Martin v. Löwis2006-06-141-5/+10
|
* Merged changes from external pysqlite 2.3.0 release. Documentation updates willGerhard Häring2006-06-134-58/+266
| | | | follow in a few hours at the latest. Then we should be ready for beta1.
* Remove unused variable.Brett Cannon2006-06-131-1/+0
|
* Patch #1454481: Make thread stack size runtime tunable.Andrew MacIntyre2006-06-131-0/+58
| | | | | | | | | | Heavily revised, comprising revisions: 46640 - original trunk revision (backed out in r46655) 46647 - markup fix (backed out in r46655) 46692:46918 merged from branch aimacintyre-sf1454481 branch tested on buildbots (Windows buildbots had problems not related to these changes).
* Add pep-291 compatibility markers.Thomas Heller2006-06-129-2/+37
|
* Fix the CRT argument error handling for VisualStudio .NET 2005. Install a ↵Kristján Valur Jónsson2006-06-121-0/+8
| | | | | | CRT error handler and disable the assertion for debug builds. This causes CRT to set errno to EINVAL. This update fixes crash cases in the test suite where the default CRT error handler would cause process exit.
* Make the -m switch conform to the documentation of sys.path by behaving like ↵Nick Coghlan2006-06-121-2/+3
| | | | the -c switch
* I don't know how that happend, but the entire file contents wasThomas Heller2006-06-121-195/+0
| | | | duplicated. Thanks to Simon Percivall for the heads up.
* Get rid of function pointer cast.Martin v. Löwis2006-06-121-3/+3
|
* Patch #1503046, Conditional compilation of zlib.(de)compressobj.copyNeal Norwitz2006-06-121-0/+6
| | | | | copy is only in newer versions of zlib. This should allow zlibmodule to work with older versions like the Tru64 buildbot.
* Impl ssize_tNeal Norwitz2006-06-122-105/+110
|
* Fix some Py_ssize_t issuesNeal Norwitz2006-06-123-9/+10
|
* Fix some Py_ssize_t issuesNeal Norwitz2006-06-121-5/+6
|
* Cleanup Py_ssize_t a little (get rid of second #ifdef)Neal Norwitz2006-06-121-5/+2
|
* Release the GIL during COM method calls, to avoid deadlocks inThomas Heller2006-06-111-3/+10
| | | | Python coded COM objects.
* Wrap some long linesNeal Norwitz2006-06-111-15/+10
| | | | | Top/Bottom factor out some common expressions Add a XXX comment about widing offset.
* Fix Coverity # 146. newDBSequenceObject would deref dbobj, so it can't be NULL.Neal Norwitz2006-06-111-4/+2
| | | | | We know it's not NULL from the ParseTuple and DbObject_Check will verify it's not NULL.
* Handle failure of PyMem_Realloc.Thomas Heller2006-06-101-1/+4
|
* Don't use C++ comment.Thomas Heller2006-06-101-1/+1
|
* Fix the second occurrence of the problematic printf format.Thomas Heller2006-06-101-5/+1
|
* Fix a wrong printf format.Thomas Heller2006-06-101-6/+1
|
* Upgrade to ctypes version 0.9.9.7.Thomas Heller2006-06-106-284/+496
| | | | | | | | Summary of changes: - support for 'variable sized' data - support for anonymous structure/union fields - fix severe bug with certain arrays or structures containing more than 256 fields
* Patch #1495999: Part two of Windows CE changes.Martin v. Löwis2006-06-108-6/+32
| | | | | | - update header checks, using autoconf - provide dummies for getenv, environ, and GetVersion - adjust MSC_VER check in socketmodule.c
* Turn off warning about deprecated CRT functions on for VisualStudio .NET 2005.Kristján Valur Jónsson2006-06-091-0/+2
| | | | Make the definition #ARRAYSIZE conditional. VisualStudio .NET 2005 already has it defined using a better gimmick.
* Buffer objects would return the read or write buffer for a wrapped object whenBrett Cannon2006-06-081-0/+1
| | | | | | | | | the char buffer was requested. Now it actually returns the char buffer if available or raises a TypeError if it isn't (as is raised for the other buffer types if they are not present but requested). Not a backport candidate since it does change semantics of the buffer object (although it could be argued this is enough of a bug to bother backporting).
* Make binascii.hexlify() use s# for its arguments instead of t# to actuallyBrett Cannon2006-06-081-1/+1
| | | | match its documentation stating it accepts any read-only buffer.