summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Ubuntu bug #29289: Fixed a bug that the gb18030 codec raisesHye-Shik Chang2006-03-281-4/+1
| | | | | RuntimeError on encoding surrogate pair area on UCS4 build. This is a partial backport of r43320. (Approved by Anthony Baxter)
* Merge rev 43181 from the trunk.Tim Peters2006-03-281-9/+40
| | | | | | | | | | | | | | | | | | | | | | | Try to repair at least one segfault on the Mac buildbot, 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.
* update - still some old .cvsignore files lying aroundAnthony Baxter2006-03-231-9/+0
|
* Backport of r41629: hotshot generated half-meaningless numbers since theArmin Rigo2006-03-201-34/+2
| | | | introduction of C calls profiling events.
* Backport 43147:Neal Norwitz2006-03-201-4/+9
| | | | | Fix problem spotted by Coverity that occurs if tzinfo.tzname().replace() returns a non-string when converting %Z.
* Backport: Fix missing NULL checks after PyTuple_New, PyList_New, PyDict_NewGeorg Brandl2006-03-174-6/+19
|
* Backport 43037:Neal Norwitz2006-03-152-14/+13
| | | | Move test code out of xxmodule and into _testcapimodule.c where it belongs.
* Backport 42932:Neal Norwitz2006-03-141-1/+2
| | | | | | | | | Try to be a bit more consistent on all platforms: python . python < . both print a message, return non-zero and do not core dump. This hopefully fixes the failure on Solaris.
* Backport 43022:Neal Norwitz2006-03-141-0/+14
| | | | | | | | | | | | Fix and test (manually w/xx module) passing NULLs to PyObject_Str() and 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.
* Backport from trunk r42989:Hye-Shik Chang2006-03-131-1/+1
| | | | | Bug #1448490: Fixed a bug that ISO-2022 codecs could not handle SS2 (single-shift 2) escape sequences correctly.
* Merge rev 42904 from the trunk.Tim Peters2006-03-111-1/+3
| | | | | | | | | | | | | | | | | _hotshot hotshot_profiler(): If write_header() returned 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.
* Backport fixes reported by Coverity.Neal Norwitz2006-03-081-4/+4
|
* Backport r42894: SF #1444030 Fix several potential defects foundHye-Shik Chang2006-03-073-4/+10
| | | | by Coverity.
* Backport trunk's r42890 (thomas.wouters):Thomas Wouters2006-03-071-7/+7
| | | | | | | | Coverity found bug: test result of PyTuple_New() against NULL before use. and r42891 (thomas.wouters): Fix gcc 4.0.x warning about use of uninitialized value.
* Backport trunk's r42888 (thomas.wouters):Thomas Wouters2006-03-071-2/+5
| | | | Coverity found refleak: need to free 'v' after calling Tkinter_Error().
* Backport trunk's r42885 (thomas.wouters):Thomas Wouters2006-03-071-2/+4
| | | | | Coverity-found bug: don't use temp->next *before* checking it for NULL. Also return rather than use it again.
* Backport trunk's r42878 (neal.norwitz):Thomas Wouters2006-03-074-3/+10
| | | | | | | | Thanks to Coverity, these were all reported by their Prevent tool. and r42881 (thomas.wouters): Don't DECREF a borrowed reference.
* Patch #931938: prevent setting sys.prefix to ""Georg Brandl2006-02-201-0/+6
|
* Bug #854823: socketmodule now builds on Sun platforms even whenGeorg Brandl2006-02-201-2/+2
| | | | INET_ADDRSTRLEN is not defined.
* Patch #1352711: make zipimport raise a complete IOErrorGeorg Brandl2006-02-191-2/+1
|
* Bug #1366000: cleanup BZ2File.seek() logic. Fixes the case of whence=2, ↵Georg Brandl2006-02-181-42/+33
| | | | offset>=0.
* Try to improve name based on discussion on python-checkins with Jim JewettNeal Norwitz2006-02-131-5/+5
|
* Backport r42314 which fixed Windows breakage when checking that socketNeal Norwitz2006-02-122-0/+9
| | | | | | | descriptors fit in fd_set. Introduce Py_SOCKET_FD_CAN_BE_GE_FD_SETSIZE. Proposed by Tim Peters implemented by Martin von Loewis.
* Backport:Neal Norwitz2006-02-072-2/+45
| | | | | | | | | | | | | | | Bug #876637, prevent stack corruption when socket descriptor is larger than FD_SETSIZE. This can only be acheived with ulimit -n SOME_NUMBER_BIGGER_THAN_FD_SETSIZE which is typically only available to root. Since this wouldn't normally be run in a test (ie, run as root), it doesn't seem too worthwhile to add a normal test. The bug report has one version of a test. I've written another. Not sure what the best thing to do is. Do the check before calling internal_select() because we can't set an error in between Py_BEGIN_ALLOW_THREADS and Py_END_ALLOW_THREADS. This seemed the clearest solution.
* Backport:Neal Norwitz2006-02-051-5/+10
| | | | | Patch #1407135, bug #1424041: mmap.mmap(-1, size, ...) can return anonymous memory again on Unix.
* Backport 42173: get bsddb test_associate to pass with BSDDB 4.1Neal Norwitz2006-01-261-2/+2
|
* Backport:Neal Norwitz2006-01-251-3/+6
| | | | Fix bug #1413192, fix seg fault in bsddb if a txn was deleted before the env.
* backport of commit 42169Gregory P. Smith2006-01-241-2/+16
| | | | adds support for compiling against BerkeleyDB 4.4.x
* SF Bug #1407069, Remove extra semi-colon if there is no long longNeal Norwitz2006-01-171-1/+1
|
* Backport:Neal Norwitz2006-01-141-0/+1
| | | | | | | Fix SF bug #1402308, segfault when using mmap(-1, ...) This didn't crash on Linux, but valgrind complained. I'm not sure if this test is valid on Windows.
* Backport:Neal Norwitz2006-01-101-3/+3
| | | | | | SF bug #1400822, Extended version of _curses over{lay,write} does not work Fix signatures to conform to doc (also fixed ungetmouse()).
* Backport:Neal Norwitz2006-01-091-0/+5
| | | | | Bug #1400115, Fix segfault when calling curses.panel.userptr() without prior setting of the userptr.
* backport: squash compiler warning on Mac OSX 10.3Skip Montanaro2006-01-051-0/+4
|
* Backport 38951:Neal Norwitz2006-01-051-5/+3
| | | | | fixes pybsddb SF bug id 1215432. DB.associate() would crash when a DBError was supposed to be raised.
* Backport: Fix errors on 64-bit platforms. (There are still some test problemsNeal Norwitz2006-01-051-4/+4
|
* [ 959576 ] Can't build Python on POSIX w/o $HOME (backport)Georg Brandl2005-12-271-1/+2
|
* Bug #1290333: Added a workaround for cjkcodecs' _codecs_cn moduleHye-Shik Chang2005-12-121-0/+8
| | | | build problem on AIX.
* Bug #869197: setgroups rejects long integer argumentGeorg Brandl2005-11-221-6/+31
|
* [Patch #1350573] zlib.crc32 doesn't handle 0xffffffff seed. Add tests and ↵Andrew M. Kuchling2005-11-221-2/+2
| | | | bugfix. Bug reported by John Schmidt; bugfix by Danny Yoo.
* update busted commentFred Drake2005-11-111-1/+2
|
* Backport (with output/test_poll):Neal Norwitz2005-11-031-0/+2
| | | | | Bug #1346533, select.poll() doesn't raise an error if timeout > sys.maxint Need to check return result of PyInt_AsLong()
* Backport (with cleanup): Bug #1344508, Fix UNIX mmap leaking file descriptors.Neal Norwitz2005-11-021-0/+4
|
* SF #1313496: bisect C replacement doesn't accept named argsRaymond Hettinger2005-10-051-22/+26
|
* Backport:Neal Norwitz2005-10-031-0/+8
| | | | | | SF bug #887946, segfault if redirecting directory Also provide a warning if a directory is passed on the command line. Add minimal command line test.
* - Patch #1309009, Fix segfault in pyexpat when the XML document is in latin_1,Neal Norwitz2005-09-301-1/+6
| | | | but Python incorrectly assumes it is in UTF-8 format
* backport: fix parse errors in readlineGeorg Brandl2005-09-291-0/+2
|
* Backport (with Anthony's blessing (in fact he reminded me to do it :)):Michael W. Hudson2005-09-261-6/+15
| | | | | | | Patches #1298449 and #1298499: Add some missing checks for error returns in cStringIO.c. Thanks to Andrew Bennetts. This must be a backport candidate.
* Commit memory leaking fix.Georg Brandl2005-09-251-2/+6
|
* Backport bugfix:Michael W. Hudson2005-09-231-3/+6
| | | | | | | | | | Fix bug: [ 1163563 ] Sub threads execute in restricted mode basically by fixing bug 1010677 in a non-broken way. Backport candidate.
* Backport fix for patch #1297028, cjkcodecs does not initialize type pointerNeal Norwitz2005-09-231-0/+4
|