Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Squash a few calls to the hideously expensive PyObject_CallObject(o,a) | Guido van Rossum | 2002-08-16 | 5 | -12/+37 |
| | | | | | | | -- replace then with slightly faster PyObject_Call(o,a,NULL). (The difference is that the latter requires a to be a tuple; the former allows other values and wraps them in a tuple if necessary; it involves two more levels of C function calls to accomplish all that.) | ||||
* | Streamline the fast track for CFunction calls a bit more: there was | Guido van Rossum | 2002-08-16 | 1 | -5/+2 |
| | | | | | | | nothing special done if keyword arguments were present, so test for that earlier and fall through to the normal case if there are any. This ought to slow down CFunction calls with keyword args, but I don't care; it's a tiny (1%) improvement for pystone. | ||||
* | Regenerated with PyDoc_STR() around docstrings. | Jack Jansen | 2002-08-16 | 23 | -2151/+2151 |
| | |||||
* | iUse PyDoc_STR() around docstrings. | Jack Jansen | 2002-08-16 | 1 | -1/+1 |
| | |||||
* | A nice little speed-up for filter(): | Guido van Rossum | 2002-08-16 | 1 | -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. Moved | Guido van Rossum | 2002-08-16 | 1 | -1/+1 |
| | | | | to inner scope, too. | ||||
* | SF bug 594996: OverflowError in random.randrange | Tim Peters | 2002-08-16 | 1 | -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 about | Tim Peters | 2002-08-16 | 1 | -5/+12 |
| | | | | Karatsuba's better cache behavior with extremely large multiplicands. | ||||
* | Mention warnings about defining None. | Guido van Rossum | 2002-08-16 | 1 | -0/+3 |
| | |||||
* | Add warnings for arguments named None. All set. (I could add a | Guido van Rossum | 2002-08-16 | 1 | -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 any | Tim Peters | 2002-08-16 | 1 | -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 Rossum | 2002-08-16 | 1 | -0/+1 |
| | | | | | Still to do: function definition arguments (including *None and **None). | ||||
* | Add warnings for assignment or deletion of variables and attributes | Guido van Rossum | 2002-08-16 | 1 | -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 Rossum | 2002-08-16 | 1 | -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 an | Barry Warsaw | 2002-08-15 | 2 | -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 test | Jack Jansen | 2002-08-15 | 4 | -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, so | Jack Jansen | 2002-08-15 | 27 | -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 of | Jack Jansen | 2002-08-15 | 1 | -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 Peters | 2002-08-15 | 1 | -3/+3 |
| | |||||
* | k_mul() comments: In honor of Dijkstra, made the proof that "t3 fits" | Tim Peters | 2002-08-15 | 1 | -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 a | Tim Peters | 2002-08-15 | 1 | -9/+3 |
| | | | | | normalized result, so no point to normalizing it again. The number of test+branches was also excessive. | ||||
* | This is my patch | Michael W. Hudson | 2002-08-15 | 19 | -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 Rossum | 2002-08-15 | 1 | -2/+10 |
| | |||||
* | Fix typo. It's --with-universal-newlines, not | Guido van Rossum | 2002-08-15 | 2 | -3/+3 |
| | | | | --with-universal-newline. | ||||
* | Slight reordering of directories searched for BerkDB libs and include files. | Skip Montanaro | 2002-08-15 | 1 | -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 Montanaro | 2002-08-15 | 1 | -0/+32 |
| | | | | see patch 586561 | ||||
* | provide less mysterious error messages when seeing end-of-line in | Skip Montanaro | 2002-08-15 | 3 | -3/+14 |
| | | | | | single-quoted strings or end-of-file in triple-quoted strings. closes patch 586561. | ||||
* | Add 'in' change | Andrew M. Kuchling | 2002-08-15 | 1 | -3/+29 |
| | | | | | Revise sentence Add two reminders | ||||
* | Add news about Fred's change to Py_InitModule4(). | Guido van Rossum | 2002-08-14 | 1 | -0/+4 |
| | |||||
* | Reflow long lines. | Jeremy Hylton | 2002-08-14 | 1 | -26/+32 |
| | |||||
* | Py_InitModule() and friends now accept NULL for the 'methods' | Fred Drake | 2002-08-14 | 1 | -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 makes | Fred Drake | 2002-08-14 | 1 | -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 Hylton | 2002-08-14 | 1 | -1/+1 |
| | |||||
* | Added Hisao Suzuki. | Martin v. Löwis | 2002-08-14 | 1 | -0/+1 |
| | |||||
* | More changes of DeprecationWarning to FutureWarning. | Guido van Rossum | 2002-08-14 | 5 | -8/+8 |
| | |||||
* | Explain use of currentThread() in _Condition methods. | Jeremy Hylton | 2002-08-14 | 1 | -2/+2 |
| | |||||
* | The filterwarnings() call here should be updated to filter out | Guido van Rossum | 2002-08-14 | 1 | -1/+1 |
| | | | | FutureWarning. | ||||
* | Explain a little more. | Jeremy Hylton | 2002-08-14 | 1 | -0/+1 |
| | |||||
* | Explain a minor mystery. | Jeremy Hylton | 2002-08-14 | 1 | -0/+1 |
| | |||||
* | PyType_Ready(): initialize the base class a bit earlier, so that if we | Guido van Rossum | 2002-08-14 | 1 | -6/+6 |
| | | | | copy the metatype from the base, the base actually has one! | ||||
* | k_mul() comments: Simplified the simplified explanation of why ah*bh and | Tim Peters | 2002-08-14 | 1 | -6/+3 |
| | | | | al*bl "always fit": it's actually trivial given what came before. | ||||
* | More updates describing FutureWarnings. | Barry Warsaw | 2002-08-14 | 3 | -1/+13 |
| | |||||
* | mkstemp's last argument changed from binary=True to text=False. | Tim Peters | 2002-08-14 | 1 | -2/+2 |
| | |||||
* | k_mul() comments: Explained why there's always enough room to subtract | Tim Peters | 2002-08-14 | 1 | -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 Rossum | 2002-08-14 | 1 | -0/+23 |
| | | | | Tim predicts that we might as well call this CassandraWarning. | ||||
* | Document PyExc_FutureWarning | Barry Warsaw | 2002-08-14 | 1 | -4/+4 |
| | |||||
* | Added a FutureWarning for constructs that will change semantically in | Barry Warsaw | 2002-08-14 | 3 | -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öwis | 2002-08-14 | 1 | -18/+22 |
| | |||||
* | tempfile's mkstemp(): Changed last argument from | Tim Peters | 2002-08-14 | 2 | -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 is | Fred Drake | 2002-08-14 | 1 | -21/+0 |
| | | | | | simply not relevant any more. Closes SF bug #595032. |