summaryrefslogtreecommitdiffstats
path: root/Lib/dospath.py
Commit message (Collapse)AuthorAgeFilesLines
* SF bug [#469732] os.path.walk docstring inconsistent.Tim Peters2001-10-101-7/+13
| | | | | 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!
* SF patch #461781 by Chris Lawrence: os.path.realpath - Resolve symlinks:Guido van Rossum2001-09-171-0/+3
| | | | | | | | | | | | | | 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 string.ascii_letters instead of string.letters (SF bug #226706).Fred Drake2001-07-201-1/+1
|
* more __all__ updatesSkip Montanaro2001-01-201-0/+4
|
* Whitespace normalization.Tim Peters2001-01-141-2/+2
|
* Update the code to better reflect recommended style:Fred Drake2000-12-121-3/+3
| | | | | Use != instead of <> since <> is documented as "obsolescent". Use "is" and "is not" when comparing with None or type objects.
* Avoid import of string module; it is only needed for expandvars().Fred Drake2000-09-281-19/+18
| | | | | | Never assume that os.sep is for the module-specific platform; use the right separator character directly. Fix some minor style consistency nits.
* Treat trailing colon in os.path.join("a:", "b") same way for DOS as inTim Peters2000-09-191-1/+1
| | | | | recent changes to ntpath.py and posixmodule.c. Thanks to Guido for pointing out the inconsistency!
* revert semantics of commonprefix to work character-by-characterSkip Montanaro2000-08-221-11/+5
|
* damn! cut-n-paste from ntpath forgot the "import re"Skip Montanaro2000-07-171-0/+1
|
* * split on / or \Skip Montanaro2000-07-171-6/+3
| | | | * case insensitive
* fixed semantics of commonprefix to work by path elements instead ofSkip Montanaro2000-07-121-5/+13
| | | | characters.
* getatime() returned the mtime instead of the atime.Guido van Rossum2000-07-011-1/+1
| | | | Similar to an old bug in ntpath.py.
* Actually, the previous batch's comment should have been different;Guido van Rossum2000-02-041-1/+1
| | | | | | | | | | *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.
* More trivial comment -> docstring transformations by Ka-Ping Yee,Guido van Rossum2000-02-041-231/+227
| | | | | | | | | | | | | | | | | | 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.
* New code for split() by Tim Peters, behaves more like posixpath.split().Guido van Rossum1999-03-191-21/+13
|
* Add abspath()Guido van Rossum1999-01-291-0/+7
|
* Added getsize(), getmtime(), getatime()Guido van Rossum1998-07-241-0/+18
|
* REMOVE samefile(), sameopenfile(), samestat() -- these cannot be madeGuido van Rossum1998-05-021-26/+0
| | | | to work reliably (at least I wouldn't know how).
* Faster implementation of normcase (using string.lower(Guido van Rossum1998-02-191-8/+2
| | | | | | | string.replace(...)) instead of a for loop). Don't call normcase() in normpath() -- the filesystem just might be case preserving...
* islink() returns false, but there is no constant false! Return 0 instead.Guido van Rossum1997-11-041-1/+1
|
* Fix join to support multiple arguments.Guido van Rossum1997-10-071-9/+12
| | | | (Why isn't this file identical to ntpath.py?)
* redefined normcase()Guido van Rossum1995-08-101-14/+5
|
* dospath: fix by Amrit (don't normalize glob patterns away)Guido van Rossum1994-05-231-1/+7
| | | | ftplib: get rid of non-auto port assignment
* aifc, sunau: make rate an int; os: restruct; ospath: obsolete; rfc822:Guido van Rossum1994-02-151-0/+348
date and addr parsing; string: force result of atof to float and support atoi, atol, atof in strop; tzparcs: don't call test().