Small changes to base.ReadOnly docstring

This commit is contained in:
Jason Gerard DeRose 2008-12-30 01:08:04 -07:00
parent 8decf4d8c3
commit 7012bed299

View File

@ -47,8 +47,6 @@ class ReadOnly(object):
... pass
...
>>> p = Person()
>>> p.__islocked__() # Initially unlocked
False
>>> p.name = 'John Doe'
>>> p.phone = '123-456-7890'
>>> del p.phone
@ -56,8 +54,6 @@ class ReadOnly(object):
But after an instance is locked, you cannot set its attributes:
>>> p.__lock__() # This will lock the instance
>>> p.__islocked__()
True
>>> p.department = 'Engineering'
Traceback (most recent call last):
...
@ -82,7 +78,7 @@ class ReadOnly(object):
False
But again, the point is that a programmer would never employ the above
techniques as a mere accident.
techniques accidentally.
"""
__locked = False