Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | These were regenerated some time ago (with ascii chars only and | Jack Jansen | 2002-08-28 | 6 | -59/+61 |
| | | | | fully qualified imports) but somehow not checked in yet. | ||||
* | Interface to Apple Help Viewer. | Jack Jansen | 2002-08-28 | 2 | -0/+7 |
| | |||||
* | Quite down some FutureWarnings. | Barry Warsaw | 2002-08-28 | 2 | -6/+6 |
| | |||||
* | add warning about exception messages | Skip Montanaro | 2002-08-28 | 1 | -0/+7 |
| | |||||
* | Note change in behavior from 1.5.2. The new argument to NameError is | Raymond Hettinger | 2002-08-27 | 1 | -2/+2 |
| | | | | | | an error message and not just the missing name. Closes SF Bug 599869. | ||||
* | Whitespace normalization. | Barry Warsaw | 2002-08-27 | 1 | -1/+1 |
| | |||||
* | Typo | Barry Warsaw | 2002-08-27 | 1 | -1/+1 |
| | |||||
* | execfile should call PyErr_SetFromErrnoWithFilename instead of | Peter Schneider-Kamp | 2002-08-27 | 1 | -1/+1 |
| | | | | | | simply PyErr_SetFromErrno This closes bug 599163. | ||||
* | Add strong security warning about the rexec module. | Fred Drake | 2002-08-27 | 1 | -5/+17 |
| | | | | | | Closes SF patch #600861. Minor markup changes. | ||||
* | Don't use tempfile.mktemp(), since it produces annoying warnings, and | Fred Drake | 2002-08-27 | 1 | -5/+6 |
| | | | | usually isn't what we want anyway. | ||||
* | Fix a couple of whitespace consistency nits. | Fred Drake | 2002-08-26 | 1 | -2/+2 |
| | |||||
* | Simplify, and avoid PyModule_GetDict() while we're at it. | Fred Drake | 2002-08-26 | 1 | -5/+2 |
| | |||||
* | Fix an inaccuracy in the comment | Barry Warsaw | 2002-08-26 | 1 | -2/+2 |
| | |||||
* | Gave intersection_update a speed boost. | Tim Peters | 2002-08-26 | 1 | -3/+1 |
| | |||||
* | Gave issubet() and issuperset() major speed boosts. That's it for now! | Tim Peters | 2002-08-25 | 1 | -2/+4 |
| | | | | Someone else may want to tackle the mutating operations similarly. | ||||
* | Gave __sub__/difference a factor of 2-5 speed boost. | Tim Peters | 2002-08-25 | 1 | -1/+2 |
| | |||||
* | Gave __xor__/symmetric_difference a factor of 2-5 speed boost. | Tim Peters | 2002-08-25 | 1 | -4/+6 |
| | |||||
* | Sped union by a factor of 3-4. | Tim Peters | 2002-08-25 | 1 | -1/+2 |
| | |||||
* | Sped intersection by large factors (3-5x faster than before on sets of | Tim Peters | 2002-08-25 | 1 | -7/+2 |
| | | | | cardinality 500; and the smaller the intersection, the bigger the speedup). | ||||
* | Added a clue about why xyz_update isn't the same as __xyz__. | Tim Peters | 2002-08-25 | 1 | -1/+4 |
| | |||||
* | Implemented <, <=, >, >= for sets, giving subset and proper-subset | Tim Peters | 2002-08-25 | 3 | -12/+45 |
| | | | | | | meanings. I did not add new, e.g., ispropersubset() methods; we're going nuts on those, and, e.g., there was no "friendly name" for == either. | ||||
* | TestSubset(): Generalized the framework to support testing upcoming | Tim Peters | 2002-08-25 | 1 | -10/+23 |
| | | | | <, <=, etc methods too. | ||||
* | Rewrote all remaining assert stmts. | Tim Peters | 2002-08-25 | 1 | -30/+30 |
| | |||||
* | Simplified construction of the test suite. | Tim Peters | 2002-08-25 | 1 | -21/+23 |
| | |||||
* | Simplified code building sets of characters. | Tim Peters | 2002-08-25 | 1 | -5/+5 |
| | |||||
* | Ack! Virtually every test here relied on an assert stmt. assert stmts | Tim Peters | 2002-08-25 | 1 | -60/+60 |
| | | | | should never be used in tests. Repaired dozens, but more is needed. | ||||
* | Simplified the setup for is-subset testing. | Tim Peters | 2002-08-25 | 1 | -25/+20 |
| | |||||
* | Record a clue about why __or__ is not union, etc. | Tim Peters | 2002-08-25 | 1 | -0/+5 |
| | |||||
* | Replace 0 with False to match working in documentation. SF 599681. | Raymond Hettinger | 2002-08-25 | 1 | -2/+2 |
| | |||||
* | Correct documentation of allow_reuse_address to match the actual script. | Raymond Hettinger | 2002-08-25 | 1 | -1/+1 |
| | | | | Closes SF bug 599681. | ||||
* | 1. Revert subprocess environment clearing, will restart subprocess | Kurt B. Kaiser | 2002-08-25 | 3 | -39/+17 |
| | | | | | | | | | | instead. 2. Preserve the Idle client's listening socket for reuse with the fresh subprocess. 3. Remove some unused rpc code, comment out additional unused code. Modified Files: ScriptBinding.py rpc.py run.py | ||||
* | Improve exception handling across rpc interface | Kurt B. Kaiser | 2002-08-24 | 1 | -1/+4 |
| | | | | | Modified Files: rpc.py | ||||
* | Removed < <= > >= from the API. Implemented as comparisons of the | Raymond Hettinger | 2002-08-24 | 3 | -23/+5 |
| | | | | | | | | underlying dictionaries, there were no reasonable use cases (lexicographic sorting of a list of sets is somewhat esoteric). Frees the operators for other uses (such as strict subset and superset comparisons). Updated documentation and test suite accordingly. | ||||
* | string_contains(): speed up by avoiding function calls where | Guido van Rossum | 2002-08-24 | 1 | -9/+12 |
| | | | | | | possible. This always called PyUnicode_Check() and PyString_Check(), at least one of which would call PyType_IsSubtype(). Also, this would call PyString_Size() on known string objects. | ||||
* | Speed up the most egregious "if token in (long tuple)" cases by using | Guido van Rossum | 2002-08-24 | 1 | -10/+19 |
| | | | | | a dict instead. (Alas, using a Set would be slower instead of faster.) | ||||
* | Speedup for PyObject_IsTrue(): check for True and False first. | Guido van Rossum | 2002-08-24 | 1 | -0/+4 |
| | | | | | Because all built-in tests return bools now, this is the most common path! | ||||
* | At Tim Peter's suggestion, propagated GvR's binary operator changes to | Raymond Hettinger | 2002-08-24 | 2 | -8/+48 |
| | | | | | | | | | | | | the inplace operators. The strategy is to have the operator overloading code do the work and then to define equivalent method calls which rely on the operators. The changes facilitate proper application of TypeError and NonImplementedErrors. Added corresponding tests to the test suite to make sure both the operator and method call versions get exercised. Add missing tests for difference_update(). | ||||
* | Speedup for PyObject_RichCompareBool(): PyObject_RichCompare() almost | Guido van Rossum | 2002-08-24 | 1 | -1/+4 |
| | | | | | always returns a bool, so avoid calling PyObject_IsTrue() in that case. | ||||
* | Since instances of _TemporarilyImmutableSet are always thrown away | Raymond Hettinger | 2002-08-24 | 1 | -5/+1 |
| | | | | | | immediately after the comparison, there in no use in caching the hashcode. The test, 'if self._hashcode is None', never fails. Removing the caching saves a few lines and a little time. | ||||
* | Expanded tests for sets of sets. | Raymond Hettinger | 2002-08-24 | 1 | -0/+4 |
| | |||||
* | 1. Removed module self test in favor of unittests -- Timbot's suggestion. | Raymond Hettinger | 2002-08-24 | 1 | -109/+7 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2. Replaced calls to Set([]) with Set() -- Timbot's suggestion 3. Fixed subtle bug in sets of sets: The following code did not work (will add to test suite): d = Set('d') s = Set([d]) # Stores inner set as an ImmutableSet s.remove(d) # For comparison, wraps d in _TemporarilyImmutableSet The comparison proceeds by computing the hash of the _TemporarilyImmutableSet and finding it in the dictionary. It then verifies equality by calling ImmutableSet.__eq__() and crashes from the binary sanity check. The problem is that the code assumed equality would be checked with _TemporarilyImmutableSet.__eq__(). The solution is to let _TemporarilyImmutableSet derive from BaseSet so it will pass the sanity check and then to provide it with the ._data element from the wrapped set so that ImmutableSet.__eq__() will find ._data where it expects. Since ._data is now provided and because BaseSet is the base class, _TemporarilyImmutableSet no longer needs .__eq__() or .__ne__(). Note that inheriting all of BaseSet's methods is harmless because none of those methods (except ones starting with an underscore) can mutate the .data element. Also _TemporarilyImmutableSet is only used internally as is not otherwise visible. | ||||
* | Fix typo reported to python-docs. | Fred Drake | 2002-08-23 | 1 | -1/+1 |
| | |||||
* | pop() docstring: this isn't a randomly-chosen element, it's merely | Tim Peters | 2002-08-23 | 1 | -1/+1 |
| | | | | arbitrary. I already changed the docs for this. | ||||
* | Comment repair. | Tim Peters | 2002-08-23 | 1 | -4/+4 |
| | |||||
* | Fix SF bug 599128, submitted by Inyeol Lee: .replace() would do the | Guido van Rossum | 2002-08-23 | 2 | -3/+11 |
| | | | | | | | | | | | | | wrong thing for a unicode subclass when there were zero string replacements. The example given in the SF bug report was only one way to trigger this; replacing a string of length >= 2 that's not found is another. The code would actually write outside allocated memory if replacement string was longer than the search string. (I wonder how many more of these are lurking? The unicode code base is full of wonders.) Bugfix candidate; this same bug is present in 2.2.1. | ||||
* | Code by Inyeol Lee, submitted to SF bug 595350, to implement | Guido van Rossum | 2002-08-23 | 5 | -48/+61 |
| | | | | | the string/unicode method .replace() with a zero-lengt first argument. Inyeol contributed tests for this too. | ||||
* | Whitespace normalization. | Tim Peters | 2002-08-23 | 9 | -15/+15 |
| | |||||
* | Fix markup and punctuation | Raymond Hettinger | 2002-08-23 | 1 | -4/+4 |
| | |||||
* | Got rid of the toy _Set class, in favor of sets.Set. | Tim Peters | 2002-08-23 | 1 | -33/+6 |
| | |||||
* | s/_as_Temporarily_Immutable/_as_temporarily_immutable/g, because the | Tim Peters | 2002-08-23 | 1 | -2/+2 |
| | | | | latter is what the code actually does. |