Re: [path-PEP] Path inherits from basestring again
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.python archive

Re: [path-PEP] Path inherits from basestring again

From: Michael Hoffman <cam.ac.uk@mh391.invalid>
Date: Wed Jul 27 2005 - 20:44:42 CEST

Ron Adam wrote:

> In all current cases, (that I know of), of differing types, '+' raises
> an error.

Not quite:

>>> "hello " + u"world"
u'hello world'
>>> 4.5 + 5
9.5

> Question: Is a path object mutable?

No.

This should answer the rest of your questions.

-- 
Michael Hoffman
Received on Thu Sep 29 17:11:51 2005