![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.python archive[path-PEP] Path inherits from basestring again
From: Reinhold Birkenfeld <reinhold-birkenfeld-nospam@wolke7.net>
Date: Sat Jul 23 2005 - 11:35:50 CEST
Hi,
the arguments in the previous thread were convincing enough, so I made the
It still can be found in CVS: /python/nondist/sandbox/path/{path.py,test_path.py}
One thing is still different, though: a Path instance won't compare to a regular
Other minor differences, as requested on python-dev, are:
* size property -> getsize() method.
* dirname() method -> directory property
* listdir() method -> children() method
* Default constructor: Path() == Path(os.curdir)
* bytes() / lines() / text() -> read_file_{bytes,lines,text} methods
These may be removed though.
Reinhold
|