| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
We have 5 implementations of walk(), and 5 different docstrings. Combined
'em. Let's see how long it takes before they're all different again!
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Once upon a time, I put together a little function
that tries to find the canonical filename for a given
pathname on POSIX. I've finally gotten around to
turning it into a proper patch with documentation.
On non-POSIX, I made it an alias for 'abspath', as
that's the behavior on POSIX when no symlinks are
encountered in the path.
Example:
>>> os.path.realpath('/usr/bin/X11/X')
'/usr/X11R6/bin/X'
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Use != instead of <> since <> is documented as "obsolescent".
Use "is" and "is not" when comparing with None or type objects.
|
|
|
|
|
|
| |
Never assume that os.sep is for the module-specific platform; use the
right separator character directly.
Fix some minor style consistency nits.
|
|
|
|
|
| |
recent changes to ntpath.py and posixmodule.c. Thanks to Guido for
pointing out the inconsistency!
|
| |
|
| |
|
|
|
|
| |
* case insensitive
|
|
|
|
| |
characters.
|
|
|
|
| |
Similar to an old bug in ntpath.py.
|
|
|
|
|
|
|
|
|
|
| |
*this* set of patches is Ka-Ping's final sweep:
The attached patches update the standard library so that all modules
have docstrings beginning with one-line summaries.
A new docstring was added to formatter. The docstring for os.py
was updated to mention nt, os2, ce in addition to posix, dos, mac.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
who writes:
Here is batch 2, as a big collection of CVS context diffs.
Along with moving comments into docstrings, i've added a
couple of missing docstrings and attempted to make sure more
module docstrings begin with a one-line summary.
I did not add docstrings to the methods in profile.py for
fear of upsetting any careful optimizations there, though
i did move class documentation into class docstrings.
The convention i'm using is to leave credits/version/copyright
type of stuff in # comments, and move the rest of the descriptive
stuff about module usage into module docstrings. Hope this is
okay.
|
| |
|
| |
|
| |
|
|
|
|
| |
to work reliably (at least I wouldn't know how).
|
|
|
|
|
|
|
| |
string.replace(...)) instead of a for loop).
Don't call normcase() in normpath() -- the filesystem just might be
case preserving...
|
| |
|
|
|
|
| |
(Why isn't this file identical to ntpath.py?)
|
| |
|
|
|
|
| |
ftplib: get rid of non-auto port assignment
|
|
date and addr parsing; string: force result of atof to float and
support atoi, atol, atof in strop; tzparcs: don't call test().
|