Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Patch #1576166: Support os.utime for directories on Windows NT+. | Martin v. Löwis | 2006-10-15 | 1 | -2/+5 |
| | |||||
* | Bug #1548891: The cStringIO.StringIO() constructor now encodes unicode | Georg Brandl | 2006-10-12 | 1 | -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öwis | 2006-10-09 | 1 | -3/+3 |
| | |||||
* | List gc.get_count() in the module docstring. | Barry Warsaw | 2006-10-09 | 1 | -0/+1 |
| | |||||
* | Bug #1572832: fix a bug in ISO-2022 codecs which may cause segfault | Hye-Shik Chang | 2006-10-08 | 1 | -14/+22 |
| | | | | when encoding non-BMP unicode characters. (Submitted by Ray Chason) | ||||
* | Cause a PyObject_Malloc() failure to trigger a MemoryError, and then | Andrew M. Kuchling | 2006-10-04 | 1 | -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 Rigo | 2006-10-04 | 1 | -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_t | Armin Rigo | 2006-10-04 | 2 | -0/+4 |
| | | | | (unsigned long vs. unsigned int). | ||||
* | Bug #1556784: allow format strings longer than 127 characters in | Georg Brandl | 2006-09-30 | 1 | -2/+2 |
| | | | | datetime's strftime function. | ||||
* | Remove extra semi-colons reported by Johnny Lee on python-dev. Backport if ↵ | Neal Norwitz | 2006-09-23 | 2 | -3/+3 |
| | | | | anyone cares. | ||||
* | * regression bug, count_next was coercing a Py_ssize_t to an unsigned Py_size_t | Jack Diederich | 2006-09-21 | 1 | -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 keyword | Gregory P. Smith | 2006-09-19 | 1 | -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öwis | 2006-09-16 | 1 | -0/+4 |
| | |||||
* | Rewrite help message to remove some of the parentheticals. (There were a ↵ | Andrew M. Kuchling | 2006-09-14 | 1 | -9/+9 |
| | | | | lot of them.) | ||||
* | Make --help mention that -v can be supplied multiple times | Andrew M. Kuchling | 2006-09-14 | 1 | -0/+1 |
| | |||||
* | The cast function did not accept c_char_p or c_wchar_p instances | Thomas Heller | 2006-09-07 | 1 | -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 Heller | 2006-09-07 | 1 | -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. Kuchling | 2006-09-07 | 1 | -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 version | Georg Brandl | 2006-09-06 | 1 | -1/+1 |
| | | | | of os.urandom(). | ||||
* | Fix a few bugs on cjkcodecs found by Oren Tirosh: | Hye-Shik Chang | 2006-09-05 | 3 | -28/+39 |
| | | | | | | | | - gbk and gb18030 codec now handle U+30FB KATAKANA MIDDLE DOT correctly. - iso2022_jp_2 codec now encodes into G0 for KS X 1001, GB2312 codepoints to conform the standard. - iso2022_jp_3 and iso2022_jp_2004 codec can encode JIS X 2013:2 codepoints now. | ||||
* | Bug #1550714: fix SystemError from itertools.tee on negative value for n. | Neal Norwitz | 2006-09-02 | 1 | -2/+6 |
| | | | | Needs backport to 2.5.1 and earlier. | ||||
* | Bug #1548092: fix curses.tparm seg fault on invalid input. Needs backport ↵ | Neal Norwitz | 2006-09-02 | 1 | -0/+4 |
| | | | | to 2.5.1 and earlier. | ||||
* | Add missing file for _ctypes.pyd port to win64 on AMD64. | Thomas Heller | 2006-08-25 | 1 | -0/+156 |
| | |||||
* | Port _ctypes.pyd to win64 on AMD64. | Thomas Heller | 2006-08-25 | 8 | -42/+169 |
| | |||||
* | Fix SF bug #1545837: array.array borks on deepcopy. | Thomas Wouters | 2006-08-24 | 1 | -1/+1 |
| | | | | | array.__deepcopy__() needs to take an argument, even if it doesn't actually use it. Will backport to 2.5 and 2.4 (if applicable.) | ||||
* | Expose column offset information in parse trees. | Jeremy Hylton | 2006-08-22 | 1 | -15/+30 |
| | |||||
* | Alexander Belopolsky pointed out that pos is a size_t | Neal Norwitz | 2006-08-22 | 1 | -1/+1 |
| | |||||
* | Fix a couple of ssize-t issues reported by Alexander Belopolsky on python-dev | Neal Norwitz | 2006-08-21 | 1 | -1/+1 |
| | |||||
* | Move assert to after NULL check, otherwise we deref NULL in the assert. | Neal Norwitz | 2006-08-19 | 1 | -1/+1 |
| | | | | Klocwork #307 | ||||
* | Add asserts to check for 'impossible' NULL values, with comments. | Thomas Heller | 2006-08-18 | 1 | -0/+16 |
| | | | | | | | | In one place where I'n not 1000% sure about the non-NULL, raise a RuntimeError for safety. This should fix the klocwork issues that Neal sent me. If so, it should be applied to the release25-maint branch also. | ||||
* | SF#1534630 | Fredrik Lundh | 2006-08-16 | 1 | -1/+5 |
| | | | | ignore data that arrives before the opening start tag | ||||
* | Remove the special casing of Py_None when converting the return value | Thomas Heller | 2006-08-16 | 1 | -1/+1 |
| | | | | | | | | | | of the Python part of a callback function to C. If it cannot be converted, call PyErr_WriteUnraisable with the exception we got. Before, arbitrary data has been passed to the calling C code in this case. (I'm not really sure the NEWS entry is understandable, but I cannot find better words) | ||||
* | The __repr__ method of a NULL py_object does no longer raise an | Thomas Heller | 2006-08-16 | 1 | -1/+1 |
| | | | | | | | exception. Remove a stray '?' character from the exception text when the value is retrieved of such an object. Includes tests. | ||||
* | Add commented assert statements to check that the result of | Thomas Heller | 2006-08-16 | 1 | -20/+36 |
| | | | | | | | | PyObject_stgdict() and PyType_stgdict() calls are non-NULL before dereferencing the result. Hopefully this fixes what klocwork is complaining about. Fix a few other nits as well. | ||||
* | Check for NULL return value from new_CArgObject calls. | Thomas Heller | 2006-08-15 | 1 | -0/+6 |
| | |||||
* | Patch #1511317: don't crash on invalid hostname info | Georg Brandl | 2006-08-14 | 1 | -11/+14 |
| | |||||
* | Patch #1535500: fix segfault in BZ2File.writelines and make sure it | Georg Brandl | 2006-08-14 | 1 | -2/+17 |
| | | | | raises the correct exceptions. | ||||
* | Patch #1536908: Add support for AMD64 / OpenBSD. | Thomas Heller | 2006-08-14 | 3 | -3/+2 |
| | | | | | Remove the -no-stack-protector compiler flag for OpenBSD as it has been reported to be unneeded. | ||||
* | Apply the patch #1532975 plus ideas from the patch #1533481. | Thomas Heller | 2006-08-14 | 3 | -162/+182 |
| | | | | | | | | | | | | | | ctypes instances no longer have the internal and undocumented '_as_parameter_' attribute which was used to adapt them to foreign function calls; this mechanism is replaced by a function pointer in the type's stgdict. In the 'from_param' class methods, try the _as_parameter_ attribute if other conversions are not possible. This makes the documented _as_parameter_ mechanism work as intended. Change the ctypes version number to 1.0.1. | ||||
* | Revert the change that tries to zero out a closure's result storage | Thomas Heller | 2006-08-14 | 1 | -15/+5 |
| | | | | area because the size if unknown in source/callproc.c. | ||||
* | Check for NULL return value of GenericCData_new(). | Thomas Heller | 2006-08-14 | 1 | -0/+4 |
| | | | | Fixes klockwork issues #188, #189. | ||||
* | Check for NULL return value from new_CArgObject(). | Thomas Heller | 2006-08-14 | 1 | -0/+6 |
| | | | | Fixes klockwork issues #183, #184, #185. | ||||
* | Remove unused, buggy test function. | Thomas Heller | 2006-08-14 | 1 | -12/+0 |
| | | | | Fixes klockwork issue #207. | ||||
* | Get rid of compiler warning | Neal Norwitz | 2006-08-13 | 1 | -2/+2 |
| | |||||
* | Handle alloca failures. | Neal Norwitz | 2006-08-13 | 2 | -0/+15 |
| | | | | Klocwork 225-228 | ||||
* | Really address the issue of where to place the assert for leftblock. | Neal Norwitz | 2006-08-13 | 1 | -1/+1 |
| | | | | (Followup of Klocwork 274) | ||||
* | Handle failure from PyModule_GetDict() (Klocwork 208). | Neal Norwitz | 2006-08-13 | 1 | -9/+15 |
| | | | | | Fix a bunch of refleaks in the init of the module. This would only be found when running python -v. | ||||
* | Handle failures from lookup. | Neal Norwitz | 2006-08-13 | 1 | -0/+4 |
| | | | | Klocwork 341-342 | ||||
* | It's very unlikely, though possible that source is not a string. Verify | Neal Norwitz | 2006-08-13 | 1 | -0/+3 |
| | | | | | | | that PyString_AsString() returns a valid pointer. (The problem can arise when zlib.decompress doesn't return a string.) Klocwork 346 | ||||
* | Handle malloc and fopen failures more gracefully. | Neal Norwitz | 2006-08-13 | 1 | -2/+8 |
| | | | | Klocwork 180-181 |