summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* SF bug #1028306: date-datetime comparisonTim Peters2004-09-161-1/+11
| | | | Treat comparing a date to a datetime like a mixed-type comparison.
* Patch for compilation on IRIX from rwgk on http://python.org/sf/728330Trent Mick2004-09-131-0/+10
|
* SF patch #998993: The UTF-8 and the UTF-16 stateful decoders now supportWalter Dörwald2004-09-071-24/+57
| | | | | | | | | | | decoding incomplete input (when the input stream is temporarily exhausted). codecs.StreamReader now implements buffering, which enables proper readline support for the UTF-16 decoders. codecs.StreamReader.read() has a new argument chars which specifies the number of characters to return. codecs.StreamReader.readline() and codecs.StreamReader.readlines() have a new argument keepends. Trailing "\n"s will be stripped from the lines if keepends is false. Added C APIs PyUnicode_DecodeUTF8Stateful and PyUnicode_DecodeUTF16Stateful.
* Apply patch from http://python.org/sf/728330 to fix socket module ↵Trent Mick2004-09-071-1/+13
| | | | compilation on Solaris 2.6, HP-UX 11, AIX 5.1 and (possibly) some IRIX versions.
* Remove redunandant assertions from last checkin.Raymond Hettinger2004-09-061-9/+0
|
* SF #1022953: binascii.a2b_hqx("") raises SystemErrorRaymond Hettinger2004-09-061-5/+16
| | | | | | | | | | | | | Several functions adopted the strategy of altering a full lengthed string copy and resizing afterwards. That would fail if the initial string was short enough (0 or 1) to be interned. Interning precluded the subsequent resizing operation. The solution was to make sure the initial string was at least two characters long. Added tests to verify that all binascii functions do not crater when given an empty string argument.
* Fix erroneous docstring comment.Raymond Hettinger2004-09-061-2/+3
|
* SF bug 1017405: the keys() values() and items() DB methods wereGregory P. Smith2004-09-041-1/+1
| | | | ignoring their transaction (txn) argument.
* Fixing bug #817234, which made SRE get into an infinite loop onGustavo Niemeyer2004-09-031-5/+3
| | | | | empty final matches with finditer(). New test cases included for this bug and for #581080.
* SF patch #1020188: Use Py_CLEAR where necessary to avoid crashesRaymond Hettinger2004-09-011-2/+1
| | | | (Contributed by Dima Dorfman)
* Remove mpz, rotor, xreadlines modulesAndrew M. Kuchling2004-08-311-22/+1
|
* Remove mpz, rotor, xreadlines modulesAndrew M. Kuchling2004-08-313-2488/+0
|
* SF patch #1007189, multi-line imports, for instance:Anthony Baxter2004-08-311-36/+88
| | | | | "from blah import (foo, bar baz, bongo)"
* win32_urandom(): There's no need to copy the generated byte string, soTim Peters2004-08-301-17/+11
| | | | don't.
* win32_urandom(): pass the function name to PyArg_ParseTuple, for betterTim Peters2004-08-301-1/+1
| | | | error msgs.
* win32_urandom(): Raise ValueError if the argument is negative.Tim Peters2004-08-301-0/+3
|
* win32_urandom(): Rewrite to Python C standards (hard tabs, function nameTim Peters2004-08-301-52/+59
| | | | in first column, no parens around return value).
* Patch #934711: Expose platform-specific entropy.Martin v. Löwis2004-08-291-1/+72
|
* SF feature request #992967: array.array objects should support sequences.Raymond Hettinger2004-08-291-6/+20
| | | | Made the constructor accept general iterables.
* Fix the spelling of Fredrik Lundh's last name (unless there really is aBrett Cannon2004-08-271-1/+1
| | | | "Fredrik Lund" who contributed the code in question).
* Patch #1015012. Improve markup and punctuation in libsocket.texDave Cole2004-08-261-2/+2
|
* Patch #1014930. Expose current parse location to XMLParser.Dave Cole2004-08-261-0/+14
|
* Back out 1.289, which breaks platforms needing addrinfo.h, andMartin v. Löwis2004-08-251-31/+0
| | | | | 1.293, 1.298, and 1.300, which have tried to fix this for specific platforms.
* SF #1015517, get readline to compile with older compilersNeal Norwitz2004-08-251-3/+4
|
* Fix for [ 1010677 ] thread Module Breaks PyGILState_Ensure(),Mark Hammond2004-08-241-5/+3
| | | | | and a test case. When booting a new thread, use the PyGILState API to manage the GIL.
* Updated the socketpair() docstring and documentation to explain that theDave Cole2004-08-231-2/+4
| | | | | default famility is AF_UNIX if defined for the platform, otherwise the default is AF_INET.
* Removed unnecessary calls to signal() to ignore SIGPIPE. SIGPIPE is ignoredDave Cole2004-08-231-13/+0
| | | | in initsigs() inside pythonrun.c.
* Patch 1012740: cStringIO's truncate doesn'tTim Peters2004-08-211-0/+1
| | | | | | | | | | | | | truncate() left the stream position unchanged, which meant the "truncated" data didn't go away: >>> io.write('abc') >>> io.truncate(0) >>> io.write('xyz') >>> io.getvalue() 'abcxyz' Patch by Dima Dorfman.
* Fail fatally if strdup fails.Martin v. Löwis2004-08-201-0/+4
|
* Bug #1005737, #1007249: Fix several build problems and warningsHye-Shik Chang2004-08-195-42/+45
| | | | | found on legacy C compilers of HP-UX, IRIX and Tru64. (Reported by roadkill, Richard Townsend, Maik Hertha and Minsik Kim)
* Patch #1011822: Display errno/strerror for inaccessible files.Martin v. Löwis2004-08-191-2/+7
|
* Patch #914291: Restore locale while readline is running.Martin v. Löwis2004-08-181-0/+8
|
* This is Mark Russell's patch:Michael W. Hudson2004-08-171-18/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [ 1009560 ] Fix @decorator evaluation order From the description: Changes in this patch: - Change Grammar/Grammar to require newlines between adjacent decorators. - Fix order of evaluation of decorators in the C (compile.c) and python (Lib/compiler/pycodegen.py) compilers - Add better order of evaluation check to test_decorators.py (test_eval_order) - Update the decorator documentation in the reference manual (improve description of evaluation order and update syntax description) and the comment: Used Brett's evaluation order (see http://mail.python.org/pipermail/python-dev/2004-August/047835.html) (I'm checking this in for Anthony who was having problems getting SF to talk to him)
* fix a couple problems with the last patch picked up by Michael HudsonSkip Montanaro2004-08-161-12/+8
|
* Add get_history_item and replace_history_item functions to the readlineSkip Montanaro2004-08-151-0/+67
| | | | | module. Closes patch #675551. My apologies to Michal Vitecek for taking so long to process this.
* Quote \r\n correctly, remove random indentation (patch #1009384). ThanksJohannes Gijsbers2004-08-151-2/+2
| | | | Cherniavsky Beni!
* make exception propogation more efficient; this avoids having Expat parseFred Drake2004-08-131-5/+7
| | | | | | | the remaining data in the buffer (which it had done happily without reporting any results) this depends on a new feature in Expat added in 1.95.8
* Patch #1005568: Use _SC_PAGESIZE on Irix.Martin v. Löwis2004-08-121-0/+5
| | | | Backported to 2.3.
* Bug #1001857: socketmodule does not build under cygwinJason Tishler2004-08-091-0/+4
| | | | Restore clean building under Cygwin.
* Patch #1003700: Add socketpair function to socket module.Dave Cole2004-08-091-0/+62
|
* Bug 1003471: Python 1.5.2 security vulnerability still present in 2.3.4Tim Peters2004-08-081-4/+10
| | | | | | | | | | | | | | That's the title of the report, but the hole was probably plugged since Python 2.0. See corresponding checkin to PC/getpathp.c: a crucial precondition for joinpath() was neither documented nor verified, and there are so many callers with so many conditional paths that no "eyeball analysis" is satisfactory. Now Python dies with a fatal error if the precondition isn't satisfied, instead of allowing a buffer overrun. NOT TESTED! The Windows version of the patch was, but not this one. I don't feel like waiting for someone to notice the patch I attached to the bug report. If it doesn't compile, sorry, but fix it <wink>. If it does compile, it's "obviously correct".
* [Bug #923315] Produce correct result on AIXAndrew M. Kuchling2004-08-071-1/+5
|
* add constants for many error values added over the past couple ofFred Drake2004-08-041-0/+17
| | | | years
* Add a missing decref -- PyErr_SetObject increfs the 'object'!Michael W. Hudson2004-08-041-0/+1
|
* Fix a leak of a reference on None.Michael W. Hudson2004-08-041-3/+1
|
* SF #989185: Drop unicode.iswide() and unicode.width() and addHye-Shik Chang2004-08-042-1091/+1293
| | | | | | | | | | | | unicodedata.east_asian_width(). You can still implement your own simple width() function using it like this: def width(u): w = 0 for c in unicodedata.normalize('NFC', u): cwidth = unicodedata.east_asian_width(c) if cwidth in ('W', 'F'): w += 2 else: w += 1 return w
* Tkapp_New(): Rewrite in C so it compiles again.Tim Peters2004-08-041-1/+4
|
* Patch #986929: Add support for wish -sync and -use options.Martin v. Löwis2004-08-031-4/+37
|
* allow ctime(), gmtime(), and localtime() to take None as equivalent to an ↵Fred Drake2004-08-031-9/+30
| | | | | | omitted arg (closes SF bug #658254, patch #663482)
* Patch #977074: Move Encode/Decode to the top so gcc can inline them.Martin v. Löwis2004-08-031-34/+33
|