- 25 Şub, 2006 1 kayıt (commit)
-
-
Guido van Rossum yazdı
- The copy module now "copies" function objects (as atomic objects). - dict.__getitem__ now looks for a __missing__ hook before raising KeyError. - Added a new type, defaultdict, to the collections module. This uses the new __missing__ hook behavior added to dict (see above).
-
- 16 Ock, 2005 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 27 May, 2004 1 kayıt (commit)
-
-
Walter Dörwald yazdı
Add this default to UserDict.DictMixin.setdefault() too.
-
- 04 Mar, 2004 1 kayıt (commit)
-
-
Raymond Hettinger yazdı
(Championed by Bob Ippolito.) The update() method for mappings now accepts all the same argument forms as the dict() constructor. This includes item lists and/or keyword arguments.
-
- 21 Ara, 2003 1 kayıt (commit)
-
-
Raymond Hettinger yazdı
dictionary as the original. This parallels MvL's change to Lib/os.py 1.56. Backport candidate.
-
- 04 Ara, 2003 1 kayıt (commit)
-
-
Raymond Hettinger yazdı
-
- 06 Mar, 2003 1 kayıt (commit)
-
-
Raymond Hettinger yazdı
(contributed by Michael Stone.)
-
- 31 Ock, 2003 1 kayıt (commit)
-
-
Barry Warsaw yazdı
-
- 22 Ock, 2003 1 kayıt (commit)
-
-
Raymond Hettinger yazdı
Sebastien Keim pointed out that iterkeys and __contains__ require their own definitions so their behavior will update when the underlying method is subclassed.
-
- 27 Kas, 2002 1 kayıt (commit)
-
-
Raymond Hettinger yazdı
Constructor accepts optional keyword arguments after a optional items list. Add fromkeys() as an alternate constructor from an iterable over keys. Expand related unittests.
-
- 22 Kas, 2002 1 kayıt (commit)
-
-
Raymond Hettinger yazdı
Already supported dict() and dict(mapping). Now supports dict(itemsequence) and Just van Rossum's new syntax for dict(keywordargs). Also, added related unittests. The docs already promise dict-like behavior so no update is needed there.
-
- 18 Kas, 2002 1 kayıt (commit)
-
-
Raymond Hettinger yazdı
Replaced docstring with comments. Prevents subclass contamination. Added the missing __cmp__() method and a test for __cmp__(). Used try/except style in preference to has_key() followed by a look-up. Used iteritem() where possible to save creating a long key list and to save redundant lookups. Expanded .update() to look for the most helpful methods first and gradually work down to a mininum expected interface. Expanded documentation to be more clear on how to use the class.
-
- 15 Kas, 2002 1 kayıt (commit)
-
-
Raymond Hettinger yazdı
and add a mixin to UserDict.py to make it easier to implement a full dictionary interface.
-
- 13 Nis, 2002 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 05 Kas, 2001 1 kayıt (commit)
-
-
Fred Drake yazdı
original by replacing self.data temporarily, then using the update() method on the new mapping object to populate it. This closes SF bug #476616.
-
- 07 Agu, 2001 1 kayıt (commit)
-
-
Guido van Rossum yazdı
break old code (in extreme cases). See SF bug #448153. Add a new subclass IterableUserDict that has the __iter__ method. Note that for new projects, unless backwards compatibility with pre-2.2 Python is required, subclassing 'dictionary' is recommended; UserDict might become deprecated.
-
- 18 Haz, 2001 1 kayıt (commit)
-
-
Martin v. Löwis yazdı
has_key, __getitem__, and __setitem__.
-
- 03 May, 2001 1 kayıt (commit)
-
-
Fred Drake yazdı
-
- 21 Nis, 2001 1 kayıt (commit)
-
-
Tim Peters yazdı
-
- 18 Şub, 2001 1 kayıt (commit)
-
-
Skip Montanaro yazdı
-
- 20 Ock, 2001 1 kayıt (commit)
-
-
Skip Montanaro yazdı
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.
-
- 12 Ara, 2000 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 08 Agu, 2000 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 02 Şub, 2000 1 kayıt (commit)
-
-
Guido van Rossum yazdı
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).
-
- 26 Mar, 1999 1 kayıt (commit)
-
-
Guido van Rossum yazdı
The constructor now takes an optional dictionary. Use isinstance() where appropriate.
-
- 26 Mar, 1998 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 06 Eki, 1997 1 kayıt (commit)
-
-
Barry Warsaw yazdı
method.
-
- 03 Haz, 1997 2 kayıt (commit)
-
-
Guido van Rossum yazdı
(it so happens that copy.copy() works fine for the base UserDict type). Also reindented the entire module to have 4-space indents.
-
Fred Drake yazdı
-
- 30 Kas, 1993 1 kayıt (commit)
-
-
Guido van Rossum yazdı
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().
-