summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove a broken example of extreme backward compatibility; it isFred Drake2002-08-141-21/+0
| | | | | simply not relevant any more. Closes SF bug #595032.
* Patch #595014: Cygwin tempfile patchJason Tishler2002-08-141-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | Although Cygwin attempts to be as Posix compliant as possible, it has difficulties unlinking open files. This is not surprising given that Cygwin is dependent on Win32 which in turn has this problem itself. The attached tempfile patch acknowledges this Cygwin limitation. Without this patch, Cygwin fails test_tempfile (i.e., test_has_no_name) as follows: $ ./python -E -tt ../Lib/test/regrtest.py -l test_tempfile test_tempfile test test_tempfile failed -- Traceback (most recent call last): File "/home/jt/src/PythonCvs/Lib/test/test_tempfile.py", line 689, in test_has_no_name self.failOnException("rmdir", ei) File "/home/jt/src/PythonCvs/Lib/test/test_tempfile.py", line 33, in failOnException self.fail("%s raised %s: %s" % (what, ei[0], ei[1])) File "/home/jt/src/PythonCvs/Lib/unittest.py", line 260, in fail raise self.failureException, msg AssertionError: rmdir raised exceptions.OSError: [Errno 90] Directory not empty: '/mnt/c/DOCUME~1/jatis/LOCALS~1/Temp/tmpM_z8nj'
* Patch by Tim to shut up the compiler's DeprecationWarnings on theBarry Warsaw2002-08-141-18/+9
| | | | high-bit-set hex constants.
* test_many(): open only 100 temp files, not 1000. Some systems don'tGuido van Rossum2002-08-141-1/+1
| | | | | allow that many open files per process. I don't see that 1000 makes any difference for the test.
* Patch #588564: _locale library patchJason Tishler2002-08-141-1/+6
| | | | | | | This patch enables setup.py to find gettext routines when they are located in libintl instead of libc. Although I developed this patch for Cygwin, I hope that it can be easily updated to support other platforms (if necessary). I tested this patch under Cygwin and Red Hat Linux 7.1.
* Check for trailing backslash. Fixes #593656.Martin v. Löwis2002-08-142-5/+9
|
* Patch #505705: Remove eval in pickle and cPickle.Martin v. Löwis2002-08-148-139/+267
|
* tightening up a few except: clausesSkip Montanaro2002-08-141-3/+3
| | | | see bug 411881
* Fix memory leaks reported by valgrindNeal Norwitz2002-08-141-1/+7
|
* add some example docstrings using PyDoc_STRSkip Montanaro2002-08-141-8/+8
|
* add PyDoc_STR and PyDoc_STRVAR calls as examples for module authorsSkip Montanaro2002-08-141-6/+18
|
* runtest(): I don't know why we don't just use TESTFN, but if we have toTim Peters2002-08-141-4/+5
| | | | | | | | | | | | | do bizarre things to get a temp file, I changed it to use mkstemp instead of NamedTemporaryFile. This tried to leave the file open while passing its name to execfile(). On Win2K (but not Win9X), though, a file created with O_TEMPORARY cannot be opened again, so the test failed with a permission error when execfile tried to open it. Closer to the truth: a file created with O_TEMPORARY can be opened again, but only if the file is also created with SHARE_DELETE access via the Win32 CreateFile() function. There's no way to get at that from MS's version of libc, though (we'd have to ditch the "std" C file functions in favor of Win32 API calls).
* mkstemp(): Repaired error in docstring (the sense of the 'binary' flagTim Peters2002-08-141-2/+2
| | | | was reversed).
* mkstemp(): The optional "binary" argument is clearly intended to be aTim Peters2002-08-131-1/+1
| | | | Boolean, so changed its default value from 1 to True.
* NamedTemporaryFile(), TemporaryFile(): removed needless local vrbl 'bin'.Tim Peters2002-08-131-6/+8
|
* template: removed special-casing for NT; there isn't an 8-character limit.Tim Peters2002-08-131-4/+1
|
* _once(): Removed obfuscating aliasing of _once_lock.Tim Peters2002-08-131-4/+2
|
* _once(): Simplified dict manipulation.Tim Peters2002-08-131-2/+2
|
* Allow more docstrings to be removed during compilation in some modulesNeal Norwitz2002-08-134-38/+40
|
* Allow more docstrings to be removed during compilationNeal Norwitz2002-08-132-14/+18
|
* Added a test specifically to tickle Karatsuba; it costs no appreciableTim Peters2002-08-131-0/+26
| | | | runtime.
* Add a missing call to _strclass().Jeremy Hylton2002-08-131-1/+1
|
* Fixed error in new comment.Tim Peters2002-08-131-4/+3
|
* k_mul(): The fix for (ah+al)*(bh+bl) spilling 1 bit beyond the allocatedTim Peters2002-08-131-8/+44
| | | | | | | | | | space is no longer needed, so removed the code. It was only possible when a degenerate (ah->ob_size == 0) split happened, but after that fix went in I added k_lopsided_mul(), which saves the body of k_mul() from seeing a degenerate split. So this removes code, and adds a honking long comment block explaining why spilling out of bounds isn't possible anymore. Note: ff we end up spilling out of bounds anyway <wink>, an assert in v_iadd() is certain to trigger.
* Regress Guido's change of 2002/08/06 to check for the zlib versionBarry Warsaw2002-08-131-4/+13
| | | | | 1.1.4. Redhat hasn't upgraded but does provide a patched 1.1.3 package, so checking for 1.1.4 just makes life difficult.
* Allow docstrings to be removed during compilation for *SLOT macro and friendsNeal Norwitz2002-08-131-3/+5
|
* Add tests for including __dict__ and/or __weakref__ in __slots__.Guido van Rossum2002-08-131-1/+50
| | | | Add some more rigor to slotmultipleinheritance().
* SF bug #574235, convert_path fails with empty pathnameNeal Norwitz2002-08-131-2/+4
|
* Allow docstrings to be removed during compilationNeal Norwitz2002-08-131-3/+3
|
* Add test for SF bug # 575229, multiple inheritance w/ slots dumps coreNeal Norwitz2002-08-131-0/+11
| | | | Fix already checked in by Guido
* Remove ugly irregular spaces from in front of some comments.Fred Drake2002-08-131-3/+3
|
* Bug #556025: list(xrange(1e9)) --> seg faultJason Tishler2002-08-131-0/+5
| | | | | | | | | Close the bug report again -- this time for Cygwin due to a newlib bug. See the following for the details: http://sources.redhat.com/ml/newlib/2002/msg00369.html Note that this commit is only a documentation (i.e., comment) change.
* Add an improvement wrinkle to Neil Schemenauer's change to int_mulGuido van Rossum2002-08-131-2/+4
| | | | | | | (rev. 2.86). The other type is only disqualified from sq_repeat when it has the CHECKTYPES flag. This means that for extension types that only support "old-style" numeric ops, such as Zope 2's ExtensionClass, sq_repeat still trumps nb_multiply.
* test_division(): Added one larger digits value, to ensure that theTim Peters2002-08-131-1/+2
| | | | "lopsided Karatsuba" driver also gets some exercise.
* Machines-- and Python --are a lot faster in relevant ways since thisTim Peters2002-08-131-3/+5
| | | | | | test was written. So boosted the number of "digits" this generates, and also beefed up the "* / divmod" test to tickle numbers big enough to trigger the Karatsuba algorithm. It takes about 2 seconds now on my box.
* Fix comment for PyLong_AsUnsignedLong() to say that the return valueGuido van Rossum2002-08-131-1/+1
| | | | is an *unsigned* long.
* Fix wanrings about unsigned hex constants.Guido van Rossum2002-08-121-2/+2
|
* k_lopsided_mul(): This allocated more space for bslice than necessary.Tim Peters2002-08-121-1/+1
|
* The auto-reply text for the python-docs address. This is not automaticallyFred Drake2002-08-121-0/+171
| | | | updated when checkins are made, but I can get that updated when needed.
* Added new function k_lopsided_mul(), which is much more efficient thanTim Peters2002-08-122-13/+75
| | | | | | | | k_mul() when inputs have vastly different sizes, and a little more efficient when they're close to a factor of 2 out of whack. I consider this done now, although I'll set up some more correctness tests to run overnight.
* Don't use hex constants representing negative numbers.Guido van Rossum2002-08-121-1/+1
|
* Suppress warnings about test_grammar.py that can't be suppressed insideGuido van Rossum2002-08-121-0/+6
| | | | that file itself (because it's the parser that reports them).
* Use PyErr_WarnExplicit() to warn about hex/oct constants, so theGuido van Rossum2002-08-121-4/+9
| | | | correct filename and line number are reported.
* Updated for the current state of affairs.Jack Jansen2002-08-121-20/+27
|
* New names.Guido van Rossum2002-08-121-0/+2
|
* Make sure that *any* object whose id() is used as a memo key is keptGuido van Rossum2002-08-121-2/+1
| | | | alive in the memo. This fixes SF bug 592567.
* k_mul(): Moved an assert down. In a debug build, interrupting aTim Peters2002-08-121-2/+2
| | | | | multiply via Ctrl+C could cause a NULL-pointer dereference due to the assert.
* k_mul(): Heh -- I checked in two fixes for the last problem. Only keepTim Peters2002-08-121-2/+2
| | | | the good one <wink>. Also checked in a test-aid by mistake.
* k_mul(): White-box testing turned up that (ah+al)*(bh+bl) can, in rareTim Peters2002-08-121-3/+11
| | | | | | | | | cases, overflow the allocated result object by 1 bit. In such cases, it would have been brought back into range if we subtracted al*bl and ah*bh from it first, but I don't want to do that because it hurts cache behavior. Instead we just ignore the excess bit when it appears -- in effect, this is forcing unsigned mod BASE**(asize + bsize) arithmetic in a case where that doesn't happen all by itself.
* Fix MSVC warnings.Guido van Rossum2002-08-121-2/+2
|