summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* C89 compliance.Armin Rigo2005-09-201-2/+2
|
* Fix problems reported by valgrind:Neal Norwitz2005-09-191-1/+2
| | | | | | | * Fix memory leak in posix.access() * Fix use of uninitialized value in forkpty() - from the manpage it isn't clear if there are conditions where master_fd are uninitialized, but it's safer to initialize
* Patch #1213831: Fix typo in unicodedata._getcode.Martin v. Löwis2005-09-181-1/+1
|
* bug [ 1007046 ] os.startfile() doesn't accept Unicode filenamesGeorg Brandl2005-09-141-1/+2
|
* - Changes donated by Elemental Security to make it work on AIX 5.3Guido van Rossum2005-09-146-46/+52
| | | | | with IBM's 64-bit compiler (SF patch #1284289). This also closes SF bug #105470: test_pwd fails on 64bit system (Opteron).
* bug [ 1274069 ] bz2module.c compiler warningGeorg Brandl2005-09-031-5/+12
|
* Backport checkin:Walter Dörwald2005-08-301-2/+2
| | | | | | SF bug #1251300: On UCS-4 builds the "unicode-internal" codec will now complain about illegal code points. The codec now supports PEP 293 style error handlers. (This is a variant of the patch by Nik Haldimann that detects truncated data)
* Important typoGeorg Brandl2005-08-261-1/+1
|
* SF bug #1072182: bad arg type to isspace in struct moduleRaymond Hettinger2005-08-261-3/+3
|
* backport patch [ 756021 ] Allow socket.inet_aton("255.255.255.255") on WindowsGeorg Brandl2005-08-261-7/+12
|
* Disallow keyword arguments for type constructors that don't use themGeorg Brandl2005-08-266-12/+54
| | | | (fixes #1119418).
* Backport fixes for bugs #1191043 and #1215928.Georg Brandl2005-08-251-7/+30
|
* backport bug [ 728515 ] mmap's resize method resizes the file in win32 but ↵Georg Brandl2005-08-241-1/+11
| | | | not unix
* [ 1243081 ] repair typosGeorg Brandl2005-07-221-1/+1
|
* Fix check for error conditionAndrew M. Kuchling2005-06-151-1/+1
|
* backportSkip Montanaro2005-06-151-0/+1
|
* [Bug #1200134] Fix buffer overflow by constraining size of .getstr(), ↵Andrew M. Kuchling2005-06-091-9/+13
| | | | .instr() to size of allocated buffer
* Backport bug #1194181: bz2.BZ2File didn't handle mode 'U' correctly.Georg Brandl2005-06-031-0/+4
|
* Backport my recent raw_input() vs no threads build vs SIGINT argh:Michael W. Hudson2005-04-071-0/+4
| | | | | | | | In a threads-disabled build, typing Ctrl-C into a raw_input() crashed, because (essentially) I didn't realise that PY_BEGIN/END_ALLOW_THREADS actually expanded to nothing under a no-threads build, so if you somehow NULLed out the threadstate (e.g. by calling PyThread_SaveThread) it would stay NULLed when you return to Python. Argh!
* Backport:Michael W. Hudson2005-03-311-26/+23
| | | | | | | | | | | | | | | | | | | Fixes for [ 1166660 ] The readline module can cause python to segfault It seems to me that the code I'm rewriting here attempted to call any user-supplied hook functions using the thread state of the thread that called the hook-setting function, as opposed to that of the thread that is currently executing. This doesn't work, in general. Fix this by using the PyGILState API (It wouldn't be that hard to define a dummy version of said API when #ifndef WITH_THREAD, would it?). Also, check the conversion to integer of the return value of a hook function for errors (this problem was mentioned in the ipython bug report linked to in the above bug).
* Backport of change to os.access to encode Unicode file names withMartin v. Löwis2005-03-131-1/+2
| | | | the file system encoding.
* SF bug #1160187: Setup file needs entries for collections, itertools, stropRaymond Hettinger2005-03-091-0/+4
|
* SF #818006: revert addition of 'closed', 'mode', and 'name' attributesGreg Ward2005-03-091-54/+26
| | | | to oss_audio_device objects.
* Build with --disable-unicode again. Fixes #1158607.Martin v. Löwis2005-03-082-1/+17
|
* SF #818006: add useful read-only attributes to oss_audio_device object:Greg Ward2005-03-071-26/+54
| | | | | 'closed', 'name', and 'mode' (as recommended by http://python.org/doc/current/lib/bltin-file-objects.html).
* Patches #925152, #1118602: Avoid reading after the end of the bufferMartin v. Löwis2005-03-041-1/+1
| | | | in pyexpat.GetInputContext.
* Patch #1093585: raise a ValueError for negative history items inMartin v. Löwis2005-02-271-0/+10
| | | | remove_history and replace_history.
* forwardport of 2.3.5 fixes to copy.pyAlex Martelli2005-02-071-1/+175
|
* [Bug #1083110] calling .flush() on decompress objects causes a segfault due ↵Andrew M. Kuchling2004-12-281-1/+5
| | | | to an uninitialized pointer: fixes the problem and adds a test case
* Bug #1087216: datetime module documentation missing critical detailRaymond Hettinger2004-12-191-3/+9
|
* fix unterminated commentAndrew MacIntyre2004-12-181-1/+1
|
* Backport fixes for bugs #1086555 and #1085744.Raymond Hettinger2004-12-171-3/+4
|
* fixes compilation against BerkeleyDB 3.2.9 (sf bug # 1077040)Gregory P. Smith2004-12-161-21/+82
|
* OS/2 specific fixes related to SF bug # 1003471.Andrew MacIntyre2004-12-121-68/+67
| | | | | | | Also revise a related function to minimise file handle/pipe leakage and improve reliability. Backported from -HEAD.
* Fixing bug #1072259 of SRE into release24-maint.Gustavo Niemeyer2004-12-021-7/+10
|
* Rename a static variable "history_length" to "_history_length".Hye-Shik Chang2004-11-251-6/+6
| | | | | GNU readline exports a global variable that has such a name already and the collision makes gcc4 doesn't compile the source.
* Correct the handling of 0-termination of PyUnicode_AsWideChar()Marc-André Lemburg2004-11-221-1/+3
| | | | | | | | and its usage in PyLocale_strcoll(). Clarify the documentation on this. Thanks to Andreas Degert for pointing this out.
* Patch #1050475: Fix various x86_64 build issuesMartin v. Löwis2004-11-131-2/+2
| | | | | | regrtest.py: skip rgbimg and imageop as they are not built on 64-bit systems. _tkinter.c: replace %.8x with %p for printing pointers. setup.py: add lib64 into the library directories.
* SF patch 1062495: Modules/zipimport.c does not compile on solarisRaymond Hettinger2004-11-101-5/+5
| | | | | | (Contributed by Niki W. Waibel.) Simple renaming to avoid a conflict that prevented compilation on Solaris.
* SF patch #1062279: deque pickling problemsRaymond Hettinger2004-11-091-10/+12
| | | | | | | (Contributed by Dima Dorfman.) * Support pickling of dictionaries in instances of deque subclasses. * Support pickling of recursive deques.
* Fix apparently trivial buffer overflow (SF bug 1060396).Jeremy Hylton2004-11-071-1/+1
| | | | memset() wrote one past the end of the buffer, which was likely to be unused padding or a yet-to-be-initialized local variable. This routine is already tested by test_socket.
* Bump-up block size.Raymond Hettinger2004-11-021-1/+1
|
* Add error checks for the bz2, cStringIO and operator modules.Walter Dörwald2004-11-011-4/+4
| | | | Add function names to various PyArg_ParseTuple calls in bz2module.c.
* gc_list_move(): Make this truly equivalent to remove+append. WhileTim Peters2004-11-011-3/+5
| | | | | | nothing in gc currently cares, the original coding could screw up if, e.g., you tried to move a node to the list it's already in, and the node was already the last in its list.
* gc list function cleanup.Tim Peters2004-11-011-15/+31
| | | | | | | | | | | Introduced gc_list_move(), which captures the common gc_list_remove() + gc_list_append() sequence. In fact, no uses of gc_list_append() remained (they were all in a gc_list_move() sequence), so commented that one out. gc_list_merge(): assert that `from` != `to`; that was an implicit precondition, now verified in a debug build. Others: added comments about their purpose.
* handle_weakrefs(): Simplification -- there's no need to make a secondTim Peters2004-10-311-58/+28
| | | | pass over the unreachable weakrefs-with-callbacks to unreachable objects.
* SF 1055820: weakref callback vs gc vs threadsTim Peters2004-10-302-107/+296
| | | | | | | | In cyclic gc, clear weakrefs to unreachable objects before allowing any Python code (weakref callbacks or __del__ methods) to run. This is a critical bugfix, affecting all versions of Python since weakrefs were introduced. I'll backport to 2.3.
* some platforms still need offsetof() from structmember.hFred Drake2004-10-171-0/+1
|
* Fix and test weak referencing of itertools.tee objects.Raymond Hettinger2004-10-171-1/+6
|
* Just remove the #include of signal.h. That it was C++-commented outMichael W. Hudson2004-10-141-1/+0
| | | | was a mistake of mine in updating patch #975056 (I think).