Commit 4a5fd8ae authored by Fred Drake's avatar Fred Drake

fix typos

parent b594cc75
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
import persistent import persistent
class Length(persistent.Persistent): class Length(persistent.Persistent):
"""BTree lengths are too expensive to compute """BTree lengths are often too expensive to compute.
Objects that use BTrees need to keep track of lengths themselves. Objects that use BTrees need to keep track of lengths themselves.
This class provides an object for doing this. This class provides an object for doing this.
...@@ -24,10 +24,10 @@ class Length(persistent.Persistent): ...@@ -24,10 +24,10 @@ class Length(persistent.Persistent):
resolution. resolution.
It is tempting to to assign length objects to __len__ attributes It is tempting to to assign length objects to __len__ attributes
to provide instance-specific __len__ methods. However, this no to provide instance-specific __len__ methods. However, this no
longer works as expected, because new-style classes cache longer works as expected, because new-style classes cache
class-defined slot methods (like __len__) in C type slots. Thus, class-defined slot methods (like __len__) in C type slots. Thus,
instance-define slot fillers are ignores. instance-defined slot fillers are ignored.
""" """
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment