summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Replace a few more 'char' types with 'signed char', to fix test failuresThomas Heller2006-04-061-5/+5
| | | | on platforms (ppc debian) where 'char' is unsigned.
* This change shouldn't have any functional effect. Coverity wasNeal Norwitz2006-04-061-1/+1
| | | | complaining because it seemed like parameters_iter could be NULL.
* Fix unchecked return result from Coverity.Neal Norwitz2006-04-061-0/+2
|
* Handle ssize_tNeal Norwitz2006-04-061-2/+2
|
* Handle error conditions from PyString_ConcatAndDel().Neal Norwitz2006-04-061-1/+6
|
* Handle ssize_tNeal Norwitz2006-04-061-3/+4
| | | | | | No need to INCREF then let PyString_ConcatAndDel() DECREF. Just use PyString_Concat(). Handle error condition if we can't concat.
* Explicitely use 'signed char', to avoid problems on platforms with unsigned ↵Thomas Heller2006-04-051-26/+26
| | | | char type.
* Explicitely use 'signed char', to avoid problems on platforms with unsigned ↵Thomas Heller2006-04-051-2/+2
| | | | char type.
* upgrade to final version of pysqlite 2.2.0Anthony Baxter2006-04-059-30/+23
|
* docstring tweakFredrik Lundh2006-04-041-1/+1
|
* SF Bug #1448488 - make collectionsmodule build on Cygwin, using the sameAnthony Baxter2006-04-041-2/+6
| | | | techniques as in Modules/xxsubtype.c
* Fix a couple of memory issuesNeal Norwitz2006-04-041-3/+3
|
* Update to pysqlite 2.2.0Anthony Baxter2006-04-0412-129/+416
|
* Properly support empty woperation in win32_startfile;Martin v. Löwis2006-04-031-9/+12
| | | | correct arguments to ShellExecuteW.
* Try to fix the build on Mac OS X 10.3. The 'live_support' segmentThomas Heller2006-04-031-1/+1
| | | | attribute is not supported in this version.
* - add missing chunk for patch #1117961Matthias Klose2006-04-031-2/+2
|
* - Patch #360466: Replace the MD5 implementation from RSA Data Security IncMatthias Klose2006-04-034-344/+465
| | | | with the implementation from http://sourceforge.net/projects/libmd5-rfc/.
* Try to fix the tests on OpenBSD. Apparently OpenBSD passesThomas Heller2006-04-031-2/+2
| | | | structure parameters differently than other posix-like systems.
* Bug #1451503: allow unicode filenames in os.startfile().Georg Brandl2006-04-031-0/+35
|
* Whitespace: break long lineNeal Norwitz2006-04-031-1/+2
|
* Make ssize_t cleanNeal Norwitz2006-04-014-6/+6
|
* backport r243 from the pysqlite2 svn repository - lowers the required versionAnthony Baxter2006-04-013-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 Brandl2006-04-011-1/+3
|
* Bug #1460564: document that socket.fromfd() duplicates the givenGeorg Brandl2006-04-011-2/+3
| | | | file descriptor.
* merged the sqlite-integration branch.Anthony Baxter2006-04-0122-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 ifThomas Wouters2006-03-311-1/+1
| | | | fcntl() and fdopen() both fail. Will backport.
* Add guards against fcntl() not being available on Windows.Georg Brandl2006-03-311-0/+4
|
* bug #1461855: make os.fdopen() add the O_APPEND flag if using "a" mode.Georg Brandl2006-03-311-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()sGeorg Brandl2006-03-311-8/+15
|
* Remove unnecessary casts from type object initializers.Georg Brandl2006-03-303-35/+35
|
* Try to build _ctypes on x86 openbsd.Thomas Heller2006-03-302-0/+2
|
* In format strings slinging Py_ssize_t, unconditionallyTim Peters2006-03-281-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 Norwitz2006-03-281-1/+1
|
* Make itertools.tee and its internal teedataobject participate in GC. ThisThomas Wouters2006-03-271-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 codecHye-Shik Chang2006-03-272-41/+52
| | | | changes.
* Years in the making.Tim Peters2006-03-261-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 Chang2006-03-261-4/+4
|
* Allow long objects as a position value of error callbacks returned.Hye-Shik Chang2006-03-261-8/+12
|
* Patch #1443155: Add the incremental codecs support for CJK codecs.Hye-Shik Chang2006-03-263-316/+826
| | | | (reviewed by Walter Dörwald)
* Try to fix broken compile on openbsd.Neal Norwitz2006-03-261-4/+4
|
* Fix some int/Py_ssize_t issues which led to compiler warningsThomas Heller2006-03-221-6/+6
| | | | on 64-bit platforms.
* Include <malloc.h> on windows, to avoid warnings when compiling with mingw.Thomas Heller2006-03-224-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 Peters2006-03-211-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 Heller2006-03-202-2/+3
|
* Apply patch from Martin v. Loewis: Avoid function pointer casts.Thomas Heller2006-03-202-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 Norwitz2006-03-201-1/+1
|
* Fix another bug found by Coverty.Thomas Heller2006-03-201-1/+1
|
* Fix bug found by Coverty.Thomas Heller2006-03-201-1/+1
|
* Accessing unaligned structure fields works now on all architectures.Thomas Heller2006-03-201-46/+104
| | | | Including unittest.
* The helper is only necessary for wait3/4.Neal Norwitz2006-03-201-0/+2
|