summaryrefslogtreecommitdiffstats
path: root/Lib/UserDict.py
Commit message (Collapse)AuthorAgeFilesLines
* Patch #413171: Implement get, setdefault, update in terms ofMartin v. Löwis2001-06-181-5/+7
| | | | has_key, __getitem__, and __setitem__.
* Added support for .iteritems(), .iterkeys(), .itervalues().Fred Drake2001-05-031-0/+3
|
* Give UserDict new __contains__ and __iter__ methods.Tim Peters2001-04-211-0/+4
|
* 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.
* Add popitem().Guido van Rossum2000-12-121-0/+2
|
* Barry's patch to implement the new setdefault() method.Guido van Rossum2000-08-081-0/+4
|
* 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).
* Improved a bunch of things.Guido van Rossum1999-03-261-13/+16
| | | | | The constructor now takes an optional dictionary. Use isinstance() where appropriate.
* Mass check-in after untabifying all files that need it.Guido van Rossum1998-03-261-15/+15
|
* UserDict.get(): New method to mirror built-in dictionaries' get()Barry Warsaw1997-10-061-0/+5
| | | | method.
* Fix bug in copy() by using copy.copy() instead of making assumptionsGuido van Rossum1997-06-031-31/+25
| | | | | (it so happens that copy.copy() works fine for the base UserDict type). Also reindented the entire module to have 4-space indents.
* Added the new dictionary methods to the wrapper class.Fred Drake1997-06-031-0/+16
|
* * test_*.py: new lambda syntax (also affects tests for filter, map,Guido van Rossum1993-11-301-0/+18
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().