summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Patch #1309579: wait3 and wait4 were added to the posix module by Chad J. ↵Neal Norwitz2006-03-201-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 Baxter2006-03-201-1199/+1201
| | | | expand tabs.
* SF [ 1231053 ] audioop - alaw encoding/decoding added, code updatedAnthony Baxter2006-03-201-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 Norwitz2006-03-202-13/+19
|
* Fix problem spotted by Coverity that occurs if tzinfo.tzname().replace()Neal Norwitz2006-03-201-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 Norwitz2006-03-201-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() andWalter Dörwald2006-03-181-0/+24
| | | | PyCodec_IncrementalDecoder().
* Fix compiler warning.Thomas Heller2006-03-181-1/+1
|
* RFE #567972: Socket objects' family, type and proto properties areGeorg Brandl2006-03-171-1/+10
| | | | now exposed via new get...() methods.
* Fix some missing checks after PyTuple_New, PyList_New, PyDict_NewGeorg Brandl2006-03-174-5/+19
|
* Merge changes from the upstream version:Thomas Heller2006-03-172-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 Heller2006-03-161-0/+1
|
* Use int 0 as default defval for LCID if nothing has been supplied.Thomas Heller2006-03-161-3/+8
|
* Fix compiler warning.Thomas Heller2006-03-161-1/+1
|
* Fixes from Neal Norwitz, plus other small fixes.Thomas Heller2006-03-161-8/+18
|
* Rewrite the AllocFunctionCallback function for better error handling.Thomas Heller2006-03-161-15/+16
| | | | Hope that fixes one or two Coverty warnings.
* Remove regsub, reconvert, regex, regex_syntax and everything under lib-old.Neal Norwitz2006-03-163-2939/+0
|
* Rename sre.py -> re.pyNeal Norwitz2006-03-161-2/+4
|
* SF patch #1359365: cStringIO.StringIO.isatty() will raise a ValueErrorWalter Dörwald2006-03-151-1/+2
| | | | now if close() has been called before (like file and StringIO.StringIO do)
* Backport from upstream version: compatibility with older PythonThomas Heller2006-03-153-4/+35
| | | | versions.
* Implement PEP 338 which has been marked as accepted by GvRNick Coghlan2006-03-151-42/+37
|
* Revert rev 43041, which introduced the "z" format qualifierTim Peters2006-03-151-4/+4
| | | | unique to Python 2.5.
* CField_repr(): PyString_FromFormat() understands theTim Peters2006-03-151-4/+4
| | | | C99 "z" qualifier on all platforms.
* Move test code out of xxmodule and into _testcapimodule.c where it belongs.Neal Norwitz2006-03-152-14/+13
| | | | Will backport.
* Try to avoid many of the compiler warnings when compiling libffi byThomas Heller2006-03-141-3/+3
| | | | using a proper function prototype.
* Cast an Py_ssize_t to int, to avoid a compiler warning.Thomas Heller2006-03-141-2/+2
|
* Integrate patch from Neal Norwitz. He writes:Thomas Heller2006-03-143-56/+60
| | | | | | | | | | | | | | | | | | """ The attached patch fixes all the ctypes tests so they pass on amd64. It also fixes several warnings. I'm not sure what else to do with the patch. Let me know how you want to handle these in the future. I'm not sure the patch is 100% correct. You will need to decide what can be 64 bits and what can't. I believe sq_{item,slice,ass_item,ass_slice} all need to use Py_ssize_t. The types in ctypes.h may not require all the changes I made. I don't know how you want to support older version, so I unconditionally changed the types to Py_ssize_t. """ The patch is also in the ctypes SVN repository now, after small changes to add compatibility with older Python versions.
* Fix and test (manually w/xx module) passing NULLs to PyObject_Str() andNeal Norwitz2006-03-141-0/+14
| | | | | | | | | | | | | PyObject_Unicode(). This problem was originally reported from Coverity and addresses mail on python-dev "checkin r43015". This inlines the conversion of the string to unicode and cleans up/simplifies some code at the end of the PyObject_Unicode(). We really need a complete C API test module for all public APIs and passing good and bad parameter values. Will backport.
* Bug #1448490: Fix a bug that ISO-2022 codecs could not handleHye-Shik Chang2006-03-131-1/+1
| | | | SS2 (single-shift 2) escape sequences correctly.
* merged with cElementTree development trunk (1.0.6 snapshot):Fredrik Lundh2006-03-121-32/+60
| | | | | | Fixed a number of potential null-pointer-reference-under-pressure glitches, based on input from the Coverity analysis tool and Simo Salminen.
* Fix another leak in bsddb, and avoid use of uninitialized value -- funny howThomas Wouters2006-03-121-1/+2
| | | | gcc 4.0.x wasn't complaining about *that* one ;)
* Adjust CJK Ideograph range to Unicode 4.1.Martin v. Löwis2006-03-111-13/+12
|
* Fix refcounting bug.Martin v. Löwis2006-03-101-0/+1
|
* Avoid forward-declaring the methods array.Martin v. Löwis2006-03-101-52/+53
| | | | Rename unicodedata.db* to unicodedata.ucd*
* Um, I thought I'd already checked this in.Guido van Rossum2006-03-101-27/+4
| | | | | | | Anyway, this is the changes to the with-statement so that __exit__ must return a true value in order for a pending exception to be ignored. The PEP (343) is already updated.
* Update Unicode database to Unicode 4.1.Martin v. Löwis2006-03-093-12495/+16107
|
* Try to be a bit more consistent on all platforms:Neal Norwitz2006-03-091-1/+2
| | | | | | | python . python < . both print a message, return non-zero and do not core dump.
* Copy ctypes-0.9.9.4 sources from external into the trunk.Thomas Heller2006-03-08108-0/+43876
|
* typoGeorg Brandl2006-03-081-1/+1
|
* Fix logic error and DECREF reported by Coverity.Neal Norwitz2006-03-081-4/+4
|
* Clean up _bsddb.c: add a couple dozen missing Py_DECREF()'s, a handful ofThomas Wouters2006-03-081-65/+73
| | | | | | | | | | missing PyObject_Del()'s, simplify some code by using Py_BuildValue() instead of creating a tuple with items manually, stop clobbering builtin exceptions in a few places, and guard against NULL-returning functions some more. This fixes 117 of the 780 (!?!#%@#$!!) reference leaks in test_bsddb3. I ain't not done yet, although this review of 5kloc was just the easy part.
* Reformulate 42903 using an if statement.Martin v. Löwis2006-03-071-35/+31
|
* _hotshot hotshot_profiler(): If write_header() returnedTim Peters2006-03-071-1/+3
| | | | | | | | | | | | | | | | an error code, this let `self` leak. This is a disaster on Windows, since `self` already points to a newly-opened file object, and it was impossible for Python code to close the thing since the only reference to it was in a blob of leaked C memory. test_hotshot test_bad_sys_path(): This new test provoked the C bug above. This test passed, but left an open "@test" file behind, which caused a massive cascade of bogus test failures in later, unrelated tests on Windows. Changed the test code to remove the @test file it leaves behind, which relies on the change above to close that file first.
* Fix bug introduced in rev. 42884.Georg Brandl2006-03-071-3/+5
|
* Checking in the code for PEP 357.Guido van Rossum2006-03-073-35/+34
| | | | | | This was mostly written by Travis Oliphant. I've inspected it all; Neal Norwitz and MvL have also looked at it (in an earlier incarnation).
* SF #1444030: Fix several potential defects found by Coverity.Hye-Shik Chang2006-03-073-4/+10
| | | | (reviewed by Neal Norwitz)
* Add additional missing checks for return vals of PyTuple_New().Georg Brandl2006-03-071-66/+65
| | | | Normalize coding style.
* Fix gcc 4.0.x warning about use of uninitialized value.Thomas Wouters2006-03-071-1/+1
|
* Coverity found bug: test result of PyTuple_New() against NULL before use.Thomas Wouters2006-03-071-6/+6
| | | | Will backport.
* Coverity found refleak: need to free 'v' after calling Tkinter_Error().Thomas Wouters2006-03-071-2/+5
| | | | Will backport to release24.