summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add hexversion to list of safe sys names (SF bug 621447).Jeremy Hylton2002-10-111-1/+1
| | | | Bug fix candidate.
* Use fdopen() to create file from fd.Jeremy Hylton2002-10-111-1/+1
|
* A test for the recent overflow-in-format-crash bug.Michael W. Hudson2002-10-111-2/+14
| | | | | Only runs when sys.maxint == 2**32 - 1; different things go wrong on a 64-bit box.
* Back out news about SF patch 479898 -- it's withdrawn.Guido van Rossum2002-10-111-6/+0
|
* Back out #479898.Martin v. Löwis2002-10-114-90/+24
|
* Fix a nasty endcase reported by Armin Rigo in SF bug 618623:Guido van Rossum2002-10-112-4/+12
| | | | | | | | | | | | | '%2147483647d' % -123 segfaults. This was because an integer overflow in a comparison caused the string resize to be skipped. After fixing the overflow, this could call _PyString_Resize() with a negative size, so I (1) test for that and raise MemoryError instead; (2) also added a test for negative newsize to _PyString_Resize(), raising SystemError as for all bad arguments. An identical bug existed in unicodeobject.c, of course. Will backport to 2.2.2.
* Add Greg Copeland for SF # 585913, Adds Galeon support to webbrowser.pyNeal Norwitz2002-10-101-0/+1
|
* SF # 585913, Adds Galeon support to webbrowser.pyNeal Norwitz2002-10-101-1/+33
|
* Remove mentionings of DOS.Martin v. Löwis2002-10-107-13/+10
|
* Remove more DOS support.Martin v. Löwis2002-10-101-61/+0
|
* Document when unittest was added to Python.Fred Drake2002-10-101-0/+1
|
* Add new posix functionsAndrew M. Kuchling2002-10-101-3/+5
|
* Update email micro release number.Barry Warsaw2002-10-101-1/+1
|
* Document that the Charset constructor coerces its argument to lowerBarry Warsaw2002-10-101-4/+5
| | | | case.
* Document that get_content_charset() coerces its return value to lowerBarry Warsaw2002-10-101-2/+3
| | | | case.
* Bump version number to 2.4.2 to pick up the latest minor bug fixes.Barry Warsaw2002-10-101-1/+1
|
* New tests to verify that charsets are case insensitive, and that byBarry Warsaw2002-10-101-0/+34
| | | | default get_body_encoding() cannot be SHORTEST.
* get_content_charset(): RFC 2046 $4.1.2 says charsets are not caseBarry Warsaw2002-10-101-4/+6
| | | | sensitive. Coerce the argument to lower case.
* __init__(): RFC 2046 $4.1.2 says charsets are not case sensitive.Barry Warsaw2002-10-101-1/+3
| | | | | Coerce the argument to lower case. Also, since body encodings can't be SHORTEST, default the CHARSETS failobj's second item to BASE64.
* Add .PHONY targets, to declare targets that aren't real files.Guido van Rossum2002-10-101-0/+8
| | | | | | | | Immediate benefit: when you use "make -t" to avoid a global recompile after a trivial header file touchup, Make will no longer create files named all, oldsharedmods, and sharedmods. (Not sure if I tracked down all such targets. Not sure if I care.)
* Patch #612602: Streamline configure methods.Martin v. Löwis2002-10-103-79/+29
|
* Patch #569139: Implementation of major, minor and makedev.Martin v. Löwis2002-10-105-17/+450
|
* [Bug #621039] Fix broken linkAndrew M. Kuchling2002-10-101-1/+1
|
* [Bug #621038] Remove duplicated itemAndrew M. Kuchling2002-10-101-5/+1
|
* M CallTips.py Add support for getting calltip from subprocess,Kurt B. Kaiser2002-10-104-63/+89
| | | | | | | | | | | | refactor a bit and clean up. M PyShell.py Cosmetic changes, delete blank lines, add # on some blank lines. M rpc.py Add more debugging capability M run.py Add support for getting calltip from subprocess Move import statements
* SF #614596, fix for urllib2.AbstractBasicAuthHandler, John Williams (johnw42)Neal Norwitz2002-10-091-1/+1
| | | | Make the regex case insensitive for some web sites which use Realm.
* Accept Armin's documentation patch for SF bug #558179.Fred Drake2002-10-091-5/+5
| | | | Adjusted some markup to make the descriptions more consistent.
* News about repr() and 8-bit characters, and setlocale() in theGuido van Rossum2002-10-091-0/+17
| | | | readline module.
* MacOSX linker doesn't understand -R flag at all, no matter how you feed itSkip Montanaro2002-10-091-1/+4
| | | | | the flag. Punt and return a -L flag instead (returning "" gums up the command to be forked).
* GNU readline() mistakenly sets the LC_CTYPE locale.Guido van Rossum2002-10-091-0/+17
| | | | | This is evil. Only the user or the app's main() should do this! We must save and restore the locale around the rl_initialize() call.
* Undo this part of the previous checkin:Guido van Rossum2002-10-091-3/+4
| | | | | | | | | Also fixed an error message -- %s argument has non-string str() doesn't make sense for %r, so the error message now differentiates between %s and %r. because PyObject_Repr() and PyObject_Str() ensure that this can never happen. Added a helpful comment instead.
* The string formatting code has a test to switch to Unicode when %sGuido van Rossum2002-10-091-2/+5
| | | | | | | | | | | | | | sees a Unicode argument. Unfortunately this test was also executed for %r, because %s and %r share almost all of their code. This meant that, if u is a unicode object while repr(u) is an 8-bit string containing ASCII characters, '%r' % u is a *unicode* string containing only ASCII characters! Fixed by executing the test only for %s. Also fixed an error message -- %s argument has non-string str() doesn't make sense for %r, so the error message now differentiates between %s and %r.
* Add special consideration for rlcompleter. As a side effect ofGuido van Rossum2002-10-091-1/+12
| | | | | | | | | | | | | | | | initializing GNU readline, setlocale(LC_CTYPE, "") is called, which changes the <ctype.h> macros to use the "default" locale (which isn't the *initial* locale -- the initial locale is the "C" locale in which only ASCII characters are printable). When the default locale is e.g. Latin-1, the repr() of string objects can include 8-bit characters with the high bit set; I believe this is due to the recent PRINT_MULTIBYTE_STRING changes to stringobject.c. This in turn screws up test_pyexpat and test_rotor, which depend on the repr() of 8-bit strings with high bit characters. The solution (for now) is to force the LC_CTYPE locale to "C" after importing rlcompleter. This is the locale required by the test suite anyway.
* Remove more DOS support.Martin v. Löwis2002-10-092-364/+6
|
* Add a few people who were in the ACKS file in the 2.2.2 branch but notGuido van Rossum2002-10-091-0/+4
| | | | on the trunk.
* Minor edits and markup fixesAndrew M. Kuchling2002-10-091-28/+31
|
* Don't try to access sys.getwindowsversion unless it exists (ntpath isTim Peters2002-10-091-1/+2
| | | | | | imported on systems other than Windows, and in particular is imported by test___all__; the compile farm reported that all Linux tests failed due to this; isn't anyone in PythonDevLand running CVS on Linux?!).
* Logic for determining whether skipping test_pep277 is expected: whetherTim Peters2002-10-091-1/+8
| | | | | | ths "should be" skipped depends on os.path.supports_unicode_filenames, not really on the platform. Fiddled the expected-skip constructor appropriately.
* TheTim Peters2002-10-081-1/+1
| | | | | | | | | | | | | | | | list(xrange(sys.maxint / 4)) test. Changed 4 to 2. The belief is that this test intended to trigger a bit of code in listobject.c's NRESIZE macro that's looking for arithmetic overflow. As written, it doesn't achieve that, though, and leaves it up to the platform realloc() as to whether it wants to allocate 2 gigabytes. Some platforms say "sure!", although they don't appear to mean it, and disaster ensues. Changing 4 to 2 (just barely) manages to trigger the arithmetic overflow test instead, leaving the platform realloc() out of it. I'll backport this to the 2.2 branch next.
* Add os.path.supports_unicode_filenames for all platforms,Mark Hammond2002-10-0811-11/+101
| | | | | | sys.getwindowsversion() on Windows (new enahanced Tim-proof <wink> version), and fix test_pep277.py in a few minor ways. Including doc and NEWS entries.
* Document PEP 293.Martin v. Löwis2002-10-071-1/+21
|
* Document PEP 277 changes.Martin v. Löwis2002-10-071-4/+30
|
* Include wctype.h.Martin v. Löwis2002-10-071-1/+2
|
* Check for wctype.h.Martin v. Löwis2002-10-073-5/+9
|
* openfile(): Go back to opening the files in text mode. This undoesBarry Warsaw2002-10-072-2/+2
| | | | | | the change in revision 1.11 (test_email.py) in response to SF bug #609988. We now think that was the wrong fix and that WinZip was the real culprit there.
* _parsebody(): Use get_content_type() instead of the deprecatedBarry Warsaw2002-10-071-5/+6
| | | | | | | get_type(). Also, one of the regular expressions is constant so might as well make it a module global. And, when splitting up digests, handle lineseps that are longer than 1 character in length (e.g. \r\n).
* Use escaped Unicode literals, according to PEP 8.Martin v. Löwis2002-10-071-12/+11
|
* Bump the version to 2.4.1 (not 2.5 as previously mentioned) to sync itBarry Warsaw2002-10-071-1/+1
| | | | with the standalone mimelib package.
* Modified presentation of the grammar for calls to be easier to readFred Drake2002-10-071-4/+5
| | | | | for both HTML and typeset renderings. Corresponds to revision 1.53.4.8 on the r22-maint branch.
* Patch #479898: Use multibyte C library for printing strings if available.Martin v. Löwis2002-10-074-23/+81
|