[Zope-dev] RFClarification: Security on Product Attributes

Steve Alexander steve@cat-box.net
Fri, 10 Nov 2000 16:55:42 +0000


Jim Fulton wrote:

> 
>> Strings; fine, at least they're secure, and when they become proper
>> objects in Python 2.0, the problem should go away?
> 
> 
> Will Python 2.0 let you assign string attributes?


% python
Python 2.0 (#3, Oct 26 2000, 15:07:09)
[GCC 2.95.2 19991024 (release)] on sunos5
Type "copyright", "credits" or "license" for more information.
 >>> a=''
 >>> a.foo='bar'
Traceback (most recent call last):
   File "<stdin>", line 1, in ?
TypeError: object has read-only attributes
 >>>

--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net