| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
original by replacing self.data temporarily, then using the update() method
on the new mapping object to populate it.
This closes SF bug #476616.
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
has_key, __getitem__, and __setitem__.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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).
|
|
|
|
|
| |
The constructor now takes an optional dictionary.
Use isinstance() where appropriate.
|
| |
|
|
|
|
| |
method.
|
|
|
|
|
| |
(it so happens that copy.copy() works fine for the base UserDict
type). Also reindented the entire module to have 4-space indents.
|
| |
|
|
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().
|