- 11 Oct, 2002 4 commits
-
-
Michael W. Hudson authored
Only runs when sys.maxint == 2**32 - 1; different things go wrong on a 64-bit box.
-
Guido van Rossum authored
-
Martin v. Löwis authored
-
Guido van Rossum authored
'%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.
-
- 10 Oct, 2002 19 commits
-
-
Neal Norwitz authored
-
Neal Norwitz authored
-
Martin v. Löwis authored
-
Martin v. Löwis authored
-
Fred Drake authored
-
Andrew M. Kuchling authored
-
Barry Warsaw authored
-
Barry Warsaw authored
case.
-
Barry Warsaw authored
case.
-
Barry Warsaw authored
-
Barry Warsaw authored
default get_body_encoding() cannot be SHORTEST.
-
Barry Warsaw authored
sensitive. Coerce the argument to lower case.
-
Barry Warsaw authored
Coerce the argument to lower case. Also, since body encodings can't be SHORTEST, default the CHARSETS failobj's second item to BASE64.
-
Guido van Rossum authored
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.)
-
Martin v. Löwis authored
-
Martin v. Löwis authored
-
Andrew M. Kuchling authored
-
Andrew M. Kuchling authored
-
Kurt B. Kaiser authored
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
-
- 09 Oct, 2002 13 commits
-
-
Neal Norwitz authored
Make the regex case insensitive for some web sites which use Realm.
-
Fred Drake authored
Adjusted some markup to make the descriptions more consistent.
-
Guido van Rossum authored
readline module.
-
Skip Montanaro authored
the flag. Punt and return a -L flag instead (returning "" gums up the command to be forked).
-
Guido van Rossum authored
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.
-
Guido van Rossum authored
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.
-
Guido van Rossum authored
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.
-
Guido van Rossum authored
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.
-
Martin v. Löwis authored
-
Guido van Rossum authored
on the trunk.
-
Andrew M. Kuchling authored
-
Tim Peters authored
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?!).
-
Tim Peters authored
ths "should be" skipped depends on os.path.supports_unicode_filenames, not really on the platform. Fiddled the expected-skip constructor appropriately.
-
- 08 Oct, 2002 2 commits
-
-
Tim Peters authored
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.
-
Mark Hammond authored
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.
-
- 07 Oct, 2002 2 commits
-
-
Martin v. Löwis authored
-
Martin v. Löwis authored
-