summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* + A msg on c.l.py reminded me that docstrings can be implicitly catenated.Tim Peters2001-08-131-28/+48
| | | | | | | Cater to that. + Major speed boost via not reading more of files than necessary. This was no slouch before; now it screams. + Improve msg when giving up on a goofy future statement.
* further work on font config and general feel improvementsSteven M. Gava2001-08-131-21/+24
|
* SF patch #445412 extract ndiff functionality to difflib, fromTim Peters2001-08-124-493/+598
| | | | David Goodger.
* Modify _Set to support iteration.Jeremy Hylton2001-08-121-0/+3
| | | | | Otherwise printlist(surprise) will fail with a TypeError, because map is called with an argument that doesn't support iteration.
* Remove much dead code from ceval.cJeremy Hylton2001-08-123-255/+58
| | | | | | | | | | | | | | The descr changes moved the dispatch for calling objects from call_object() in ceval.c to PyObject_Call() in abstract.c. call_object() and the many functions it used in ceval.c were no longer used, but were not removed. Rename meth_call() as PyCFunction_Call() so that it can be called by the CALL_FUNCTION opcode in ceval.c. Also, fix error message that referred to PyEval_EvalCodeEx() by its old name eval_code2(). (I'll probably refer to it by its old name, too.)
* Bump size of sprintf buffer. Suggested by Alex Coventry.Martin v. Löwis2001-08-121-1/+1
|
* Tool to delete (or just rewrite parts of) obsolete future statements.Tim Peters2001-08-121-0/+256
|
* - Expand test for dynamic objects.Guido van Rossum2001-08-121-21/+33
| | | | | | - Remove various 'global' directives and move some global definitions inside the test functions that use them -- we have nested scopes so the old hacks using globals are no longer needed.
* Make dynamic types work as intended. Or at least more so.Guido van Rossum2001-08-121-22/+35
| | | | | | | XXX There are still some loose ends: repr(), str(), hash() and comparisons don't inherit a default implementation from object. This must be resolved similarly to the way it's resolved for classic instances.
* Make the output of tests skipped readable (i.e., deliberately break itTim Peters2001-08-121-6/+30
| | | | into indented lines each of which probably fits on a typical screen line).
* Temporary stop-gap fix for dynamic classes, so they pass the test.Guido van Rossum2001-08-121-1/+6
| | | | | | | | | | XXX This is not sufficient: if a dynamic class has no __repr__ method (for instance), but later one is added, that doesn't add a tp_repr slot, so repr() doesn't call the __repr__ method. To make this work, I'll have to add default implementations of several slots to 'object'. XXX Also, dynamic types currently only inherit slots from their dominant base.
* dynamics(): add tests for dynamic *instances* (which are currentlyGuido van Rossum2001-08-121-1/+20
| | | | broken). Also fix an invalid reference to C (should be S).
* Test the unary operator changes to the compilerJeremy Hylton2001-08-121-0/+43
|
* Add the list of expected skips for Linux 2.x. Restructured the code aGuido van Rossum2001-08-121-28/+51
| | | | | little bit using a dictionary to avoid more code duplication as more platforms are supported.
* Move line; reported on python-dev by Mark Favas (thanks!).Tim Peters2001-08-121-1/+1
|
* SF Patch [ 429024 ] deal with some unary ops at compile timeJeremy Hylton2001-08-121-3/+66
| | | | | | | | | | | | | Revised version of Fred's patch, including support for ~ operator. If the unary +, -, or ~ operator is applied to a constant, don't generate a UNARY_xxx opcode. Just store the approriate value as a constant. If the value is negative, extend the string containing the constant and insert a negative in the 0th position. For ~, compute the inverse of int and longs and use them directly, but be prepared to generate code for all other possibilities (invalid numbers, floats, complex).
* Teach regrtest which tests we *expect* to skip on Win32. Please teach itTim Peters2001-08-121-0/+85
| | | | about your platform too.
* removed some cruftSteven M. Gava2001-08-121-7/+0
|
* _Condition.wait(): never sleep longer than the timeout time remaining,Tim Peters2001-08-121-4/+11
| | | | | and even if we have a long time left to wait, try the lock at least 20 times/second.
* Merged release21-maint changes.Jack Jansen2001-08-122-10/+22
|
* The test assumed that the local pathname convention for "foo" would sort ↵Jack Jansen2001-08-111-2/+4
| | | | before "foo/bar", which is not true on the mac (where they are "foo" and ":foo:bar", respectively; ":foo" would be fine too, but "foo" is the preferred spelling). Fixed by sorting the output.
* test_glob found a nasty bug in GUSI opendir(): it will not fail when called ↵Jack Jansen2001-08-111-0/+18
| | | | on files, but in stead open the parent directory! We now explicitly test for the argument being a directory and simulate ENOTDIR otherwise.
* Before asking the finder to start the application (if start=1 is specified), ↵Jack Jansen2001-08-111-1/+4
| | | | check that it isn't incidentally running already.
* Got rid of the activate() so codewarrior doesn't come to front. It isn't ↵Jack Jansen2001-08-111-1/+0
| | | | needed, and without it you can get work done while building the projects:-)
* Patch by Jonathan Wight (slightly reformatted) to forestall loading theJack Jansen2001-08-111-3/+7
| | | | | | | | same module twice, which apparently crashes Python. I could not test the error condition, but in normal life it seems to have no adverse effects. Also removed an unsued variable, and corrected 2 glaring errors (missing 'case' in front of a label).
* Remove st_nested_scopes from struct symtable,Jeremy Hylton2001-08-112-131/+46
| | | | | | | because nested scopes are always enabled. (Accidentally checked in one small change along this path yesterday, wreaking havoc in the Windows build.)
* Replace all type comparisons with isinstance() callsJeremy Hylton2001-08-111-9/+9
|
* Added a note about the various tests here.Jack Jansen2001-08-111-0/+4
|
* repair posix fonts fixSteven M. Gava2001-08-112-38/+66
|
* Only catch the errors that can actually occur, as reported in bug #411881.Martin v. Löwis2001-08-112-5/+9
|
* use the proper prefix file under CarbonJust van Rossum2001-08-111-1/+4
|
* support for help menu changesSteven M. Gava2001-08-111-0/+5
|
* some re-designSteven M. Gava2001-08-111-18/+27
|
* supports about changesSteven M. Gava2001-08-111-0/+50
|
* adjust help menu bindingsSteven M. Gava2001-08-111-0/+1
|
* Finally fix SF bug #441172, using a variant of patch ##443626:Guido van Rossum2001-08-111-0/+6
| | | | | | canceling an edit operation would not revert the value of the field. The fix takes care to destroy the Entry object, as suggested in the patch.
* Now that the dialogs have some breathing room, split the combo of Tcl/Tk,Tim Peters2001-08-111-56/+130
| | | | | | | | | | IDLE and pydoc into a separate component. That's almost as big as the rest of Python (excl. docs and test suite) combined. Pop up a confimation box if they choose to install at least one of {Tcl/Tk/IDLE/pydoc, Tools, Test suite} but do not choose to install Python -- doesn't make much sense, so ask whether that's really what they want.
* For the escape() function, added a reference to the quoteattrs() functionFred Drake2001-08-111-17/+22
| | | | | | | | in xml.sax.saxutils, since that is the right function to use for quoting attribute values. This closes SF bug #444707. Cleaned up a variety of other minor markup errors.
* Added tests for rich comparison operator functions.Fred Drake2001-08-112-119/+212
| | | | Converted tests to PyUnit.
* Grow the dialogs 25%, to make room for a nicer bitmap (in progress; don'tTim Peters2001-08-111-83/+84
| | | | have it yet).
* Add section on PEP 238 changesAndrew M. Kuchling2001-08-111-10/+84
| | | | Minor grammatical changes, reformattings, and an error fix from Keith Briggs
* st_nested_scopes was uninitialized trash. Jeremy should fix in a betterTim Peters2001-08-111-0/+6
| | | | way; see code comments.
* Add a note that the quoteattr() function is useful for HTML and SGMLFred Drake2001-08-101-0/+2
| | | | attributes as well.
* Refactor future feature handlingJeremy Hylton2001-08-104-52/+17
| | | | | | | | | | | Replace uses of PyCF_xxx with CO_xxx. Replace individual feature slots in PyFutureFeatures with single bitmask ff_features. When flags must be transfered among the three parts of the interpreter that care about them -- the pythonrun layer, the compiler, and the future feature parser -- can simply or (|) the definitions.
* Refactor future feature handlingJeremy Hylton2001-08-102-16/+3
| | | | | | | | | | | | | | | | | | | Replace individual slots in PyFutureFeatures with a single bitmask with one field per feature. The flags for this bitmask are the same as the flags used in the co_flags slot of a code object. XXX This means we waste several bits, because they are used for co_flags but have no meaning for future statements. Don't think this is an issue. Remove the NESTED_SCOPES_DEFAULT define and others. Not sure what they were for anyway. Remove all the PyCF_xxx flags, but define PyCF_MASK in terms of the CO_xxx flags that are relevant for this release. Change definition of PyCompilerFlags so that cf_flags matches co_flags.
* Added documentation for PyDict_Update() and PyDict_Merge().Fred Drake2001-08-101-1/+19
|
* Add test for SF bug #442833 (multiple inheritance).Guido van Rossum2001-08-101-0/+14
|
* The message accompanying the TypeError exception on a readonlyGuido van Rossum2001-08-101-1/+1
| | | | attribute changed again.
* - Big changes to fix SF bug #442833 (a nasty multiple inheritanceGuido van Rossum2001-08-101-91/+122
| | | | | | | | | | | | | | | | problem). inherit_slots() is split in two parts: inherit_special() which inherits the flags and a few very special members from the dominant base; inherit_slots() which inherits only regular slots, and is now called for each base in the MRO in turn. These are now both void functions since they don't have error returns. - Added object.__setitem__() back -- for the same reason as object.__new__(): a subclass of object should be able to call object.__new__(). - add_wrappers() was moved around to be closer to where it is used (it was defined together with add_methods() etc., but has nothing to do with these).
* Autotest for netpacket/packet.h, as it is not available on all Linux versions.Martin v. Löwis2001-08-102-2/+5
| | | | Depend AF_PACKET on HAVE_NETPACKET_PACKET_H.