summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Patch #1635058 by Mark Roberts: ensure that htonl and friends never accept orGuido van Rossum2007-01-141-4/+24
| | | | return negative numbers, per the underlying C implementation.
* Merged changes from standalone version 2.3.3. This should probably all beGerhard Häring2007-01-1418-484/+518
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | merged into the 2.5 maintenance branch: - self->statement was not checked while fetching data, which could lead to crashes if you used the pysqlite API in unusual ways. Closing the cursor and continuing to fetch data was enough. - Converters are stored in a converters dictionary. The converter name is uppercased first. The old upper-casing algorithm was wrong and was replaced by a simple call to the Python string's upper() method instead. -Applied patch by Glyph Lefkowitz that fixes the problem with subsequent SQLITE_SCHEMA errors. - Improvement to the row type: rows can now be iterated over and have a keys() method. This improves compatibility with both tuple and dict a lot. - A bugfix for the subsecond resolution in timestamps. - Corrected the way the flags PARSE_DECLTYPES and PARSE_COLNAMES are checked for. Now they work as documented. - gcc on Linux sucks. It exports all symbols by default in shared libraries, so if symbols are not unique it can lead to problems with symbol lookup. pysqlite used to crash under Apache when mod_cache was enabled because both modules had the symbol cache_init. I fixed this by applying the prefix pysqlite_ almost everywhere. Sigh.
* Fixes for 64-bit Windows: In ctypes.wintypes, correct the definitionsThomas Heller2007-01-111-1/+2
| | | | | of HANDLE, WPARAM, LPARAM data types. Make parameterless foreign function calls work.
* Must change the version number in the _ctypes extension as well.Thomas Heller2007-01-101-1/+1
|
* Fix zero-length corner case for iterating over a mutating deque.Raymond Hettinger2007-01-081-3/+2
|
* Silence a warning from gcc 4.0.1 by specifying a function's parameter list isBrett Cannon2007-01-051-1/+1
| | | | 'void' instead of just a set of empty parentheses.
* bump module version to match supported berkeleydb versionGregory P. Smith2007-01-051-1/+1
|
* Support linking of the bsddb module against BerkeleyDB 4.5.xGregory P. Smith2007-01-051-0/+8
| | | | (will backport to 2.5)
* Bug #1566280: Explicitly invoke threading._shutdown from Py_Main,Martin v. Löwis2007-01-041-0/+29
| | | | | to avoid relying on atexit. Will backport to 2.5.
* Fix typo.Walter Dörwald2006-12-211-1/+1
|
* Comment typoAndrew M. Kuchling2006-12-191-1/+1
|
* [Patch #1615868 by Lars Gustaebel] Use Py_off_t to fix BZ2File.seek() for ↵Andrew M. Kuchling2006-12-181-1/+1
| | | | offsets > 2Gb
* Patch #1544279: Improve thread-safety of the socket module by movingMartin v. Löwis2006-12-032-53/+45
| | | | | the sock_addr_t storage out of the socket object. Will backport to 2.5.
* Fix #1563807: _ctypes built on AIX fails with ld ffi error.Thomas Heller2006-11-281-1/+1
| | | | | | | The contents of ffi_darwin.c must be compiled unless __APPLE__ is defined and __ppc__ is not. Will backport.
* Fix bug #1598620: A ctypes structure cannot contain itself.Thomas Heller2006-11-241-3/+13
|
* Bug #1599782: Fix segfault on bsddb.db.DB().type().Neal Norwitz2006-11-211-2/+0
| | | | | | | | | The problem is that _DB_get_type() can't be called without the GIL because it calls a bunch of PyErr_* APIs when an error occurs. There were no other cases in this file that it was called without the GIL. Removing the BEGIN/END THREAD around _DB_get_type() made everything work. Will backport.
* Speed up function calls into the math module by using METH_O.Neal Norwitz2006-11-191-63/+55
| | | | | There should be no functional changes. However, the error msgs are slightly different. Also verified that the module dict is not NULL on init.
* Make cStringIO.truncate raise IOError for negativeMartin v. Löwis2006-11-191-1/+11
| | | | | arguments (even for -1). Fixes the last bit of #1359365.
* Bug #1588217: don't parse "= " as a soft line break in binascii'sGeorg Brandl2006-11-161-2/+1
| | | | | a2b_qp() function, instead leave it in the string as quopri.decode() does.
* Replace C++ comment with C comment (fixes SF bug #1593525).Walter Dörwald2006-11-091-1/+1
|
* Fix crash in test on HP-UX. Apparently, it's not possible to delete a lock ifNeal Norwitz2006-10-281-0/+3
| | | | | | it's held (even by the current thread). Will backport.
* Add some asserts. In sysmodule, I think these were to try to silenceNeal Norwitz2006-10-281-0/+1
| | | | | | | some warnings from Klokwork. They verify the assumptions of the format of svn version output. The assert in the thread module helped debug a problem on HP-UX.
* Get DBL_MAX from float.h not values.h. Will backport.Martin v. Löwis2006-10-271-3/+1
|
* Check for values.h. Will backport.Martin v. Löwis2006-10-271-0/+2
|
* Patch #1549049: Rewrite type conversion in structmember.Martin v. Löwis2006-10-271-8/+121
| | | | Fixes #1545696 and #1566140. Will backport to 2.5.
* - Patch #1560695: Add .note.GNU-stack to ctypes' sysv.S so thatMartin v. Löwis2006-10-221-0/+4
| | | | | ctypes isn't considered as requiring executable stacks. Will backport to 2.5.
* Patch #1580674: with this patch os.readlink uses the filesystem encoding toRonald Oussoren2006-10-221-2/+38
| | | | decode unicode objects and returns an unicode object when the argument is one.
* Fix various minor errors in passing arguments toMartin v. Löwis2006-10-194-16/+27
| | | | PyArg_ParseTuple.
* newIobject(): repaired incorrect cast to quiet MSVC warning.Tim Peters2006-10-181-1/+1
|
* ctypes callback functions only support 'fundamental' result types.Thomas Heller2006-10-171-2/+5
| | | | | | | | Check this and raise an error when something else is used - before this change ctypes would hang or crash when such a callback was called. This is a partial fix for #1574584. Will backport to release25-maint.
* Bug #1567666: Emulate GetFileAttributesExA for Win95.Martin v. Löwis2006-10-151-2/+102
| | | | Will backport to 2.5.
* Patch #1576166: Support os.utime for directories on Windows NT+.Martin v. Löwis2006-10-151-2/+5
|
* Bug #1548891: The cStringIO.StringIO() constructor now encodes unicodeGeorg Brandl2006-10-121-4/+2
| | | | | arguments with the system default encoding just like the write() method does, instead of converting it to a raw buffer.
* Bug #1565150: Fix subsecond processing for os.utime on Windows.Martin v. Löwis2006-10-091-3/+3
|
* List gc.get_count() in the module docstring.Barry Warsaw2006-10-091-0/+1
|
* Bug #1572832: fix a bug in ISO-2022 codecs which may cause segfaultHye-Shik Chang2006-10-081-14/+22
| | | | when encoding non-BMP unicode characters. (Submitted by Ray Chason)
* Cause a PyObject_Malloc() failure to trigger a MemoryError, and thenAndrew M. Kuchling2006-10-041-2/+21
| | | | | | | add 'if (PyErr_Occurred())' checks to various places so that NULL is returned properly. 2.4 backport candidate.
* Forward-port of r52136,52138: a review of overflow-detecting code.Armin Rigo2006-10-041-4/+8
| | | | | | | | | | | | | | | | | | | | | | | * unified the way intobject, longobject and mystrtoul handle values around -sys.maxint-1. * in general, trying to entierely avoid overflows in any computation involving signed ints or longs is extremely involved. Fixed a few simple cases where a compiler might be too clever (but that's all guesswork). * more overflow checks against bad data in marshal.c. * 2.5 specific: fixed a number of places that were still confusing int and Py_ssize_t. Some of them could potentially have caused "real-world" breakage. * list.pop(x): fixing overflow issues on x was messy. I just reverted to PyArg_ParseTuple("n"), which does the right thing. (An obscure test was trying to give a Decimal to list.pop()... doesn't make sense any more IMHO) * trying to write a few tests...
* Compilation problem caused by conflicting typedefs for uint32_tArmin Rigo2006-10-042-0/+4
| | | | (unsigned long vs. unsigned int).
* Bug #1556784: allow format strings longer than 127 characters inGeorg Brandl2006-09-301-2/+2
| | | | datetime's strftime function.
* Remove extra semi-colons reported by Johnny Lee on python-dev. Backport if ↵Neal Norwitz2006-09-232-3/+3
| | | | anyone cares.
* * regression bug, count_next was coercing a Py_ssize_t to an unsigned Py_size_tJack Diederich2006-09-211-1/+1
| | | | | | which breaks negative counts * added test for negative numbers will backport to 2.5.1
* Fixes a bug with bsddb.DB.stat where the flags and txn keywordGregory P. Smith2006-09-191-2/+2
| | | | | | arguments are transposed. (reported by Louis Zechtzer) ..already committed to release24-maint ..needs committing to release25-maint
* Patch #1557515: Add RLIMIT_SBSIZE.Martin v. Löwis2006-09-161-0/+4
|
* Rewrite help message to remove some of the parentheticals. (There were a ↵Andrew M. Kuchling2006-09-141-9/+9
| | | | lot of them.)
* Make --help mention that -v can be supplied multiple timesAndrew M. Kuchling2006-09-141-0/+1
|
* The cast function did not accept c_char_p or c_wchar_p instancesThomas Heller2006-09-071-2/+2
| | | | | as first argument, and failed with a 'bad argument to internal function' error message.
* Anonymous structure fields that have a bit-width specified did not work,Thomas Heller2006-09-071-2/+2
| | | | | | | and they gave a strange error message from PyArg_ParseTuple: function takes exactly 2 arguments (3 given). With tests.
* [Bug #1552726] Avoid repeatedly polling in interactive mode -- only put a ↵Andrew M. Kuchling2006-09-071-1/+7
| | | | | | | | | | | timeout on the select() if an input hook has been defined. Patch by Richard Boulton. This select() code is only executed with readline 2.1, or if READLINE_CALLBACKS is defined. Backport candidate for 2.5, 2.4, probably earlier versions too.
* Bug #1551427: fix a wrong NULL pointer check in the win32 versionGeorg Brandl2006-09-061-1/+1
| | | | of os.urandom().