summaryrefslogtreecommitdiffstats
path: root/Lib/macpath.py
Commit message (Collapse)AuthorAgeFilesLines
* a few more modules get __all__Skip Montanaro2001-01-241-0/+4
|
* 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-7/+7
| | | | | | Never assume that os.sep is for the module-specific platform; use the right separator character directly. Fix some minor style consistency nits.
* Restored commonprefix() semantics.Jack Jansen2000-08-231-23/+13
|
* Rewrite of normpath() by Corran Webster, so trailing :s are removedJack Jansen2000-08-061-32/+23
| | | | (except for : and volume:, where they are needed).
* fixed semantics of commonprefix to work by path elements instead ofSkip Montanaro2000-07-121-0/+23
| | | | characters.
* getatime() returned the mtime instead of the atime.Guido van Rossum2000-07-011-1/+1
| | | | Similar to an old bug in ntpath.py.
* More trivial comment -> docstring transformations by Ka-Ping Yee,Guido van Rossum2000-02-041-147/+145
| | | | | | | | | | | | | | | | | | 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.
* getsize(), getatime(), getmtime():Fred Drake1999-07-231-3/+3
| | | | | | | Constants from stat module were imported using "import *"; don't access them via stat.ST_*! Reported by that other vR. ;-)
* Add abspath()Guido van Rossum1999-01-291-0/+7
|
* Added getsize(), getmtime(), getatime()Guido van Rossum1998-07-241-0/+18
|
* Instead of 'import mac', use 'import os' -- this way, the path syntaxGuido van Rossum1998-03-031-9/+9
| | | | | manipulation routines can be used on non-Mac platforms (e.g. to manipulate pathnames in a Mac specific archive).
* Fix for boundary case (Jack)Guido van Rossum1997-05-211-1/+4
|
* join(): Wax the incorrect leading commentBarry Warsaw1997-02-181-4/+0
|
* join(): join one or more path componentsBarry Warsaw1997-02-181-12/+18
|
* Added splitext()Guido van Rossum1996-07-231-0/+22
|
* Added (dummy) expanduser and expandvar methodsJack Jansen1995-12-151-0/+11
|
* added normpath() and splitdrive()Guido van Rossum1995-08-101-39/+45
|
* Added missing walk() functionJack Jansen1995-08-071-0/+19
|
* changes for the MacGuido van Rossum1995-01-271-0/+7
|
* * Lib/linecache.py: don't crash on empty filenameGuido van Rossum1994-08-231-1/+1
| | | | | | | | | | | * Lib/macpath.py: don't return trailing colon for dirname() (XXX won't do for volume names -- but otherwise glob(':*:*.py') loops forever) * Lib/traceback.py: print SyntaxError correctly * Lib/stat.py: moved to posixstat.py; added macstat.py which has the constants for the Mac; and created new stat.py which includes the right one * Lib/urllib.py: fix caching bug (by disabling the cache)
* * change default line numbers for 'list' in pdb.pyGuido van Rossum1992-11-051-0/+12
| | | | | | | | | * changed eval() into getattr() in cmd.py * added dirname(), basename() and (dummy) normath() to macpath.py * renamed nntp.py to nntplib.py * Made string.index() compatible with strop.index() * Make string.atoi('') raise string.atoi_error rather than ValueError * Added dirname() and normpath() to posixpath.
* 'cat' no longer existsGuido van Rossum1992-03-311-3/+1
|
* Added 'normcase' function.Guido van Rossum1992-01-141-1/+6
|
* New == syntaxGuido van Rossum1992-01-011-2/+2
|
* macpath.cat --> joinGuido van Rossum1991-08-161-3/+6
|
* Added explanatory comments.Guido van Rossum1991-01-011-6/+44
|
* Initial revisionGuido van Rossum1990-12-261-0/+70