![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.python archiveRe: [path-PEP] Path inherits from basestring again
From: Ron Adam <rrr@ronadam.com>
Date: Wed Jul 27 2005 - 20:18:07 CEST
Toby Dickenson wrote:
My impression of '+', is it always join like objects...
str+str -> str
So ...
path+path -> path
In all current cases, (that I know of), of differing types, '+' raises
Question: Is a path object mutable?
Would the += operator create an new object or modify the original?
p = path('C://somedir//somefile')
p+='.zip' what would this do?
p[-1]+='.zip' Or this?
Cheer's Ron.
|