Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Make ssize_t clean | Neal Norwitz | 2006-04-01 | 4 | -6/+6 |
| | |||||
* | backport r243 from the pysqlite2 svn repository - lowers the required version | Anthony Baxter | 2006-04-01 | 3 | -126/+151 |
| | | | | | | of SQLite3 from 3.2.2 to 3.0.8, by providing an alternative to sqlite3_transfer_bindings. setup.py also handles the common (in debian and ubuntu, at least) case of a buggy sqlite3.h SQLITE_VERSION_NUMBER. | ||||
* | Patch #1459631: documnent zlib.Decompress.flush() length parameter. | Georg Brandl | 2006-04-01 | 1 | -1/+3 |
| | |||||
* | Bug #1460564: document that socket.fromfd() duplicates the given | Georg Brandl | 2006-04-01 | 1 | -2/+3 |
| | | | | file descriptor. | ||||
* | merged the sqlite-integration branch. | Anthony Baxter | 2006-04-01 | 22 | -0/+4142 |
| | | | | | | | This is based on pysqlite2.1.3, and provides a DB-API interface in the standard library. You'll need sqlite 3.2.2 or later to build this - if you have an earlier version, the C extension module will not be built. | ||||
* | In the fdopen(fd, 'a') case on UNIX, don't try to set fd's flags to -1 if | Thomas Wouters | 2006-03-31 | 1 | -1/+1 |
| | | | | fcntl() and fdopen() both fail. Will backport. | ||||
* | Add guards against fcntl() not being available on Windows. | Georg Brandl | 2006-03-31 | 1 | -0/+4 |
| | |||||
* | bug #1461855: make os.fdopen() add the O_APPEND flag if using "a" mode. | Georg Brandl | 2006-03-31 | 1 | -2/+13 |
| | | | | | | glibc, for example, does this already on its own, but it seems that the solaris libc doesn't. This leads to Python code being able to over- write file contents even though having specified "a" mode. | ||||
* | Patch #1380952: fix SSL objects timing out on consecutive read()s | Georg Brandl | 2006-03-31 | 1 | -8/+15 |
| | |||||
* | Remove unnecessary casts from type object initializers. | Georg Brandl | 2006-03-30 | 3 | -35/+35 |
| | |||||
* | Try to build _ctypes on x86 openbsd. | Thomas Heller | 2006-03-30 | 2 | -0/+2 |
| | |||||
* | In format strings slinging Py_ssize_t, unconditionally | Tim Peters | 2006-03-28 | 1 | -22/+9 |
| | | | | | interpolate PY_FORMAT_SIZE_T instead of #if'ing on MS_WIN64. | ||||
* | Try to get rid of a Coverity warning by consistently using origpending. | Neal Norwitz | 2006-03-28 | 1 | -1/+1 |
| | |||||
* | Make itertools.tee and its internal teedataobject participate in GC. This | Thomas Wouters | 2006-03-27 | 1 | -19/+71 |
| | | | | | alone does not solve the leak in test_generators, unfortunately, but it is part of test_generators' problem and it does solve other cycles. | ||||
* | Fix reference leaks introduced by the recent incremental codec | Hye-Shik Chang | 2006-03-27 | 2 | -41/+52 |
| | | | | changes. | ||||
* | Years in the making. | Tim Peters | 2006-03-26 | 1 | -5/+5 |
| | | | | | | | | | | | | | | | | | | | | | | | | objimpl.h, pymem.h: Stop mapping PyMem_{Del, DEL} and PyMem_{Free, FREE} to PyObject_{Free, FREE} in a release build. They're aliases for the system free() now. _subprocess.c/sp_handle_dealloc(): Since the memory was originally obtained via PyObject_NEW, it must be released via PyObject_FREE (or _DEL). pythonrun.c, tokenizer.c, parsermodule.c: I lost count of the number of PyObject vs PyMem mismatches in these -- it's like the specific function called at each site was picked at random, sometimes even with memory obtained via PyMem getting released via PyObject. Changed most to use PyObject uniformly, since the blobs allocated are predictably small in most cases, and obmalloc is generally faster than system mallocs then. If extension modules in real life prove as sloppy as Python's front end, we'll have to revert the objimpl.h + pymem.h part of this patch. Note that no problems will show up in a debug build (all calls still go thru obmalloc then). Problems will show up only in a release build, most likely segfaults. | ||||
* | Utilize %zd for Py_ssize_t formatting instead of casting to long. | Hye-Shik Chang | 2006-03-26 | 1 | -4/+4 |
| | |||||
* | Allow long objects as a position value of error callbacks returned. | Hye-Shik Chang | 2006-03-26 | 1 | -8/+12 |
| | |||||
* | Patch #1443155: Add the incremental codecs support for CJK codecs. | Hye-Shik Chang | 2006-03-26 | 3 | -316/+826 |
| | | | | (reviewed by Walter Dörwald) | ||||
* | Try to fix broken compile on openbsd. | Neal Norwitz | 2006-03-26 | 1 | -4/+4 |
| | |||||
* | Fix some int/Py_ssize_t issues which led to compiler warnings | Thomas Heller | 2006-03-22 | 1 | -6/+6 |
| | | | | on 64-bit platforms. | ||||
* | Include <malloc.h> on windows, to avoid warnings when compiling with mingw. | Thomas Heller | 2006-03-22 | 4 | -45/+52 |
| | | | | | | | | | Don't use SEH when compiling wth mingw. Use IS_INTRESOURCE to determine function name from function ordinal. Rewrite the code that allocates and frees callback functions, hopefully this avoids the coverty warnings: Remove the THUNK typedef, and move the definition of struct ffi_info into the header file. | ||||
* | Try to repair at least one segfault on the Mac buildbot, | Tim Peters | 2006-03-21 | 1 | -12/+42 |
| | | | | | | | | | | | | | | | | | | | | | | as diagnosed by Nick Coghlan. test_capi.py: A test module should never spawn a thread as a side effect of being imported. Because this one did, the segfault one of its thread tests caused didn't occur until a few tests after test_regrtest.py thought test_capi was finished. Repair that. Also join() the thread spawned at the end, so that test_capi is truly finished when regrtest reports that it's done. _testcapimodule.c test_thread_state(): this spawns a couple of non-threading.py threads, passing them a PyObject* argument, but did nothing to ensure that those threads finished before returning. As a result, the PyObject* _could_ (although this was unlikely) get decref'ed out of existence before the threads got around to using it. Added explicit synchronization (via a Python mutex) so that test_thread_state can reliably wait for its spawned threads to finish. | ||||
* | Avoid a potential double-free bug. | Thomas Heller | 2006-03-20 | 2 | -2/+3 |
| | |||||
* | Apply patch from Martin v. Loewis: Avoid function pointer casts. | Thomas Heller | 2006-03-20 | 2 | -34/+34 |
| | | | | https://sourceforge.net/tracker/?func=detail&atid=532156&aid=1453037&group_id=71702 | ||||
* | Damn Coverity. I can't even sneak in a leak any more. :-) | Neal Norwitz | 2006-03-20 | 1 | -1/+1 |
| | |||||
* | Fix another bug found by Coverty. | Thomas Heller | 2006-03-20 | 1 | -1/+1 |
| | |||||
* | Fix bug found by Coverty. | Thomas Heller | 2006-03-20 | 1 | -1/+1 |
| | |||||
* | Accessing unaligned structure fields works now on all architectures. | Thomas Heller | 2006-03-20 | 1 | -46/+104 |
| | | | | Including unittest. | ||||
* | The helper is only necessary for wait3/4. | Neal Norwitz | 2006-03-20 | 1 | -0/+2 |
| | |||||
* | Try to cleanup a lot of boilerplate #ifdef wrt wait types and make the code | Neal Norwitz | 2006-03-20 | 1 | -143/+47 |
| | | | | more consistent (and smaller by 85 lines or so). | ||||
* | Make some functions static, reformat function decl to be consistent and ↵ | Neal Norwitz | 2006-03-20 | 1 | -7/+10 |
| | | | | check for error from PyModule_GetDict() | ||||
* | Patch #1309579: wait3 and wait4 were added to the posix module by Chad J. ↵ | Neal Norwitz | 2006-03-20 | 1 | -0/+128 |
| | | | | | | | | Schroeder. This was a fair amount of rework of the patch. Refactored test_fork1 so it could be reused by the new tests for wait3/4. Also made them into new style unittests (derive from unittest.TestCase). | ||||
* | replace use of int16_t with a (typedef'd) short, to fix Windows buildbots. | Anthony Baxter | 2006-03-20 | 1 | -1199/+1201 |
| | | | | expand tabs. | ||||
* | SF [ 1231053 ] audioop - alaw encoding/decoding added, code updated | Anthony Baxter | 2006-03-20 | 1 | -91/+305 |
| | | | | | | | | | This patch adds a-LAW encoding to audioop and replaces the old u-LAW encoding/decoding code with the current code from sox. Possible issues: the code from sox uses int16_t. Code by Lars Immisch | ||||
* | SF #1445431, fix some leaks in error conditions. | Neal Norwitz | 2006-03-20 | 2 | -13/+19 |
| | |||||
* | Fix problem spotted by Coverity that occurs if tzinfo.tzname().replace() | Neal Norwitz | 2006-03-20 | 1 | -4/+9 |
| | | | | | | returns a non-string when converting %Z. Will backport. | ||||
* | Use macro versions instead of function versions when we already know the type. | Neal Norwitz | 2006-03-20 | 1 | -1/+1 |
| | | | | | | | | This will hopefully get rid of some Coverity warnings, be a hint to developers, and be marginally faster. Some asserts were added when the type is currently known, but depends on values from another function. | ||||
* | Add tests for the C APIs PyCodec_IncrementalEncoder() and | Walter Dörwald | 2006-03-18 | 1 | -0/+24 |
| | | | | PyCodec_IncrementalDecoder(). | ||||
* | Fix compiler warning. | Thomas Heller | 2006-03-18 | 1 | -1/+1 |
| | |||||
* | RFE #567972: Socket objects' family, type and proto properties are | Georg Brandl | 2006-03-17 | 1 | -1/+10 |
| | | | | now exposed via new get...() methods. | ||||
* | Fix some missing checks after PyTuple_New, PyList_New, PyDict_New | Georg Brandl | 2006-03-17 | 4 | -5/+19 |
| | |||||
* | Merge changes from the upstream version: | Thomas Heller | 2006-03-17 | 2 | -76/+81 |
| | | | | | - cast is implemented as a foreign function now - On Windows, it is now possible to access functions exported by ordinal only | ||||
* | Fix a leak that would happen under error conditions (found by Coverty). | Thomas Heller | 2006-03-16 | 1 | -0/+1 |
| | |||||
* | Use int 0 as default defval for LCID if nothing has been supplied. | Thomas Heller | 2006-03-16 | 1 | -3/+8 |
| | |||||
* | Fix compiler warning. | Thomas Heller | 2006-03-16 | 1 | -1/+1 |
| | |||||
* | Fixes from Neal Norwitz, plus other small fixes. | Thomas Heller | 2006-03-16 | 1 | -8/+18 |
| | |||||
* | Rewrite the AllocFunctionCallback function for better error handling. | Thomas Heller | 2006-03-16 | 1 | -15/+16 |
| | | | | Hope that fixes one or two Coverty warnings. | ||||
* | Remove regsub, reconvert, regex, regex_syntax and everything under lib-old. | Neal Norwitz | 2006-03-16 | 3 | -2939/+0 |
| | |||||
* | Rename sre.py -> re.py | Neal Norwitz | 2006-03-16 | 1 | -2/+4 |
| |