summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* A nice little speed-up for filter():Guido van Rossum2002-08-161-13/+17
| | | | | | | | | | - Use PyObject_Call() instead of PyEval_CallObject(), saves several layers of calls and checks. - Pre-allocate the argument tuple rather than calling Py_BuildValue() each time round the loop. - For filter(None, seq), avoid an INCREF and a DECREF.
* Fix SF bug 595838 -- buffer in type_new() should not be static. MovedGuido van Rossum2002-08-161-1/+1
| | | | to inner scope, too.
* SF bug 594996: OverflowError in random.randrangeTim Peters2002-08-161-4/+17
| | | | | | Loosened the acceptable 'start' and 'stop' arguments so that any Python (bounded) ints can be used. So, e.g., randrange(-sys.maxint-1, sys.maxint) no longer blows up.
* Newly-relaxed limits on random.randrange(). Also added some info aboutTim Peters2002-08-161-5/+12
| | | | Karatsuba's better cache behavior with extremely large multiplicands.
* Mention warnings about defining None.Guido van Rossum2002-08-161-0/+3
|
* Add warnings for arguments named None. All set. (I could add aGuido van Rossum2002-08-161-1/+9
| | | | | | warning for 'global None', but that's either accompanied by an assignment to None, which will trigger a warning, or not, in which case it's harmless. :-)
* check_events(): This was failing under -O, due to not expecting anyTim Peters2002-08-161-3/+0
| | | | | LINE events when not __debug__. But we get them anyway under -O now, so just stop special-casing non-__debug__ mode.
* Add warning for None used as keyword argument name in function call.Guido van Rossum2002-08-161-0/+1
| | | | | Still to do: function definition arguments (including *None and **None).
* Add warnings for assignment or deletion of variables and attributesGuido van Rossum2002-08-161-0/+27
| | | | | named 'None'. Still to do: function definition parameter lists, and function call keyword arguments.
* Minor cleanup of parsename() and parsestr(): the 'struct compiling *'Guido van Rossum2002-08-161-13/+13
| | | | | | argument should be called 'c', like everywhere else. Renamed a complex variable 'c' to 'z' and moved it inside the only scope where it's used.
* base64.decodestring('') should return '' instead of raising anBarry Warsaw2002-08-152-11/+3
| | | | | exception. The bug fix for SF #430849 wasn't quite right. This closes SF bug #595671. I'll backport this to Python 2.2.
* Fixed the bugs in the constant definitions, and in the code to testJack Jansen2002-08-154-10/+14
| | | | | | them. The FutureWarnings are still there, until a way has been found to say "I know what I'm doing here when I say 0xff000000".
* After generating the Python file with definitions try to run it, soJack Jansen2002-08-1527-0/+54
| | | | we catch errors during the build process in stead of later during runtime.
* Try to cater for a source tree checked out with MacCVS in stead ofJack Jansen2002-08-151-6/+36
| | | | | unix cvs. In this case the resource files are actual resource files in stead of AppleSingle encoded files.
* Illustrating by example one good reason not to trust a proof <wink>.Tim Peters2002-08-151-3/+3
|
* k_mul() comments: In honor of Dijkstra, made the proof that "t3 fits"Tim Peters2002-08-151-34/+37
| | | | | | | rigorous instead of hoping for testing not to turn up counterexamples. Call me heretical, but despite that I'm wholly confident in the proof, and have done it two different ways now, I still put more faith in testing ...
* long_mul(): Simplified exit code. In particular, k_mul() returns aTim Peters2002-08-151-9/+3
| | | | | normalized result, so no point to normalizing it again. The number of test+branches was also excessive.
* This is my patchMichael W. Hudson2002-08-1519-187/+341
| | | | | | | | [ 587993 ] SET_LINENO killer Remove SET_LINENO. Tracing is now supported by inspecting co_lnotab. Many sundry changes to document and adapt to this change.
* Add notes about universal newlines.Guido van Rossum2002-08-151-2/+10
|
* Fix typo. It's --with-universal-newlines, notGuido van Rossum2002-08-152-3/+3
| | | | --with-universal-newline.
* Slight reordering of directories searched for BerkDB libs and include files.Skip Montanaro2002-08-151-12/+23
| | | | | | | | | Push /usr/... further down the list - always check /usr/local/... before /usr/... Doubt this will help with http://python.org/sf/589427 or not, but these changes were prompted by my investigation of that bug report. I wasn't able to reproduce that problem though
* forgot the best part - the new tests...Skip Montanaro2002-08-151-0/+32
| | | | see patch 586561
* provide less mysterious error messages when seeing end-of-line inSkip Montanaro2002-08-153-3/+14
| | | | | single-quoted strings or end-of-file in triple-quoted strings. closes patch 586561.
* Add 'in' changeAndrew M. Kuchling2002-08-151-3/+29
| | | | | Revise sentence Add two reminders
* Add news about Fred's change to Py_InitModule4().Guido van Rossum2002-08-141-0/+4
|
* Reflow long lines.Jeremy Hylton2002-08-141-26/+32
|
* Py_InitModule() and friends now accept NULL for the 'methods'Fred Drake2002-08-141-0/+9
| | | | | argument. This makes sense now that extension types can support __init__ directly rather than requiring function constructors.
* Py_InitModule4(): Accept NULL for the 'methods' argument. This makesFred Drake2002-08-141-14/+16
| | | | | sense now that extension types can support __init__ directly rather than requiring function constructors.
* Docstring nits: The module is neither proposed nor new.Jeremy Hylton2002-08-141-1/+1
|
* Added Hisao Suzuki.Martin v. Löwis2002-08-141-0/+1
|
* More changes of DeprecationWarning to FutureWarning.Guido van Rossum2002-08-145-8/+8
|
* Explain use of currentThread() in _Condition methods.Jeremy Hylton2002-08-141-2/+2
|
* The filterwarnings() call here should be updated to filter outGuido van Rossum2002-08-141-1/+1
| | | | FutureWarning.
* Explain a little more.Jeremy Hylton2002-08-141-0/+1
|
* Explain a minor mystery.Jeremy Hylton2002-08-141-0/+1
|
* PyType_Ready(): initialize the base class a bit earlier, so that if weGuido van Rossum2002-08-141-6/+6
| | | | copy the metatype from the base, the base actually has one!
* k_mul() comments: Simplified the simplified explanation of why ah*bh andTim Peters2002-08-141-6/+3
| | | | al*bl "always fit": it's actually trivial given what came before.
* More updates describing FutureWarnings.Barry Warsaw2002-08-143-1/+13
|
* mkstemp's last argument changed from binary=True to text=False.Tim Peters2002-08-141-2/+2
|
* k_mul() comments: Explained why there's always enough room to subtractTim Peters2002-08-141-0/+7
| | | | | | ah*bh and al*bl. This is much easier than explaining why that's true for (ah+al)*(bh+bl), and follows directly from the simple part of the (ah+al)*(bh+bl) explanation.
* Add news about FutureWarning and PEP 237 stage B0.Guido van Rossum2002-08-141-0/+23
| | | | Tim predicts that we might as well call this CassandraWarning.
* Document PyExc_FutureWarningBarry Warsaw2002-08-141-4/+4
|
* Added a FutureWarning for constructs that will change semantically inBarry Warsaw2002-08-143-2/+11
| | | | | the future. Changed PEP 237 hex constant warnings from DeprecationWarning to FutureWarning. Updated the documentation.
* Patch #550192: Set softspace to 0 in raw_input().Martin v. Löwis2002-08-141-18/+22
|
* tempfile's mkstemp(): Changed last argument fromTim Peters2002-08-142-11/+11
| | | | | | | | | | binary=True to text=False by BDFL Pronouncement. All other changes follow from this. The change to the docs is ready to go, but blocked by another JackMacLock in the doc directory.
* 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.