summaryrefslogtreecommitdiffstats
path: root/Lib/UserList.py
Commit message (Collapse)AuthorAgeFilesLines
* Patch #424475: Speed-up tp_compare usage, by special-casing the commonMartin v. Löwis2001-06-091-1/+1
| | | | | | case of objects with equal types which support tp_compare. Give type objects a tp_compare function. Also add c<0 tests before a few PyErr_Occurred tests.
* removed __all__ from several modulesSkip Montanaro2001-02-181-2/+0
|
* added __all__ lists to a number of Python modulesSkip Montanaro2001-01-201-0/+2
| | | | | | | | added test script and expected output file as well this closes patch 103297. __all__ attributes will be added to other modules without first submitting a patch, just adding the necessary line to the test script to verify more-or-less correct implementation.
* Bite the bullet: use rich comparisons here, too.Guido van Rossum2001-01-181-4/+10
|
* __getslice__(): Make this use the constructor form that gets a sequenceFred Drake2000-10-061-3/+1
| | | | | | | | | | as a parameter; this was the only use of the base constructor or surgical alteration of another object's data attribute. This change simplifies the constructor requirements for subclasses. This relates to SourceForge bug #115928.
* SF patch 101391: implemented UserList.__contains__.Tim Peters2000-09-191-0/+1
|
* Support for augmented assignment in the UserList, UserDict, UserString andThomas Wouters2000-08-241-0/+11
| | | | | | rfc822 (Addresslist) modules. Also a preliminary testcase for augmented assignment, which should actually be merged with the test_class testcase I added last week.
* Spelling fixes supplied by Rob W. W. Hooft. All these are fixes in eitherThomas Wouters2000-07-161-1/+1
| | | | | | | | | | comments, docstrings or error messages. I fixed two minor things in test_winreg.py ("didn't" -> "Didn't" and "Didnt" -> "Didn't"). There is a minor style issue involved: Guido seems to have preferred English grammar (behaviour, honour) in a couple places. This patch changes that to American, which is the more prominent style in the source. I prefer English myself, so if English is preferred, I'd be happy to supply a patch myself ;)
* robustify UserList constructor -- will now accept any sequenceJeremy Hylton2000-03-311-5/+8
| | | | add test cases for non-UserList class, tuple, & string
* Mass patch by Ka-Ping Yee:Guido van Rossum2000-02-021-1/+1
| | | | | | | | | | | 1. Comments at the beginning of the module, before functions, and before classes have been turned into docstrings. 2. Tabs are normalized to four spaces. Also, removed the "remove" function from dircmp.py, which reimplements list.remove() (it must have been very old).
* Use isinstance() where appropriate.Guido van Rossum1999-03-261-49/+63
| | | | Reformatted with 4-space indent.
* Add extend() method. A small New Year's present from Jean-Claude Wippler.Guido van Rossum1999-01-061-0/+1
|
* In __getslice__, use self.__class__ instead of UserList.Guido van Rossum1998-12-091-1/+1
|
* Add pop method.Guido van Rossum1998-06-301-0/+1
|
* added * and + operatorsGuido van Rossum1996-05-281-0/+13
|
* Merge alpha100 branch back to main trunkGuido van Rossum1994-08-011-4/+2
|
* * test_*.py: new lambda syntax (also affects tests for filter, map,Guido van Rossum1993-11-301-0/+39
reduce) * ftplib.py: added default callback for retrlines; added dir() method * ftplib.py: don't return self in self.connect(); added hack so that if 'CDUP' is not understood, 'CWD ..' is tried. * ftplib.py: second method called init() should have been called connect(); if __init__ sees more than one argument, it will also try to login().