[Zope-CVS] CVS: Packages/pypes/pypes - interfaces.py:1.11
Casey Duncan
casey at zope.com
Sun Feb 15 23:44:00 EST 2004
Update of /cvs-repository/Packages/pypes/pypes
In directory cvs.zope.org:/tmp/cvs-serv15864
Modified Files:
interfaces.py
Log Message:
Revise docstrings. Add __invert__ method to IExtent. Remove subExtents method (not sure if its needed yet)
=== Packages/pypes/pypes/interfaces.py 1.10 => 1.11 ===
--- Packages/pypes/pypes/interfaces.py:1.10 Mon Feb 9 16:14:57 2004
+++ Packages/pypes/pypes/interfaces.py Sun Feb 15 23:43:59 2004
@@ -286,7 +286,8 @@
def __getitem__(key):
"""Return extent for key. Raise KeyError if key is the correct type
but is not in the map. Raise TypeError if key is not the correct type
- for the extent map"""
+ for the extent map
+ """
def __iter__():
"""Return an iterator of all extents in the mapping"""
@@ -302,10 +303,10 @@
extents. Extents behave like read-only sets in most respects. They are
updated automatically as objects are manipulated and registered with pypes.
- Although extents may be arbitrarily large, operations between them (such
- as union and intersection) are designed to be efficient, especially between
- extents of the same type (class or interface). Operations between extents
- and identity sets are also supported; resulting in a new identity set.
+ Although extents may be arbitrarily large, operations between extents of
+ the same kind (class or interface) are designed to be efficient. Operations
+ between extents and identity sets are also supported; resulting in a new
+ identity set.
"""
def __contains__(obj):
@@ -340,6 +341,11 @@
resulting derived extent or identity set
"""
+ def __invert__():
+ """Return an extent containing all identified objects except those
+ in self.
+ """
+
def issubset(other):
"""Return true if all members of self are also in other"""
@@ -358,10 +364,10 @@
key = Attribute('key',
"""Key for this extent in the extent service""")
- def subExtents():
- """Return the direct sub-extents of the extent, if any, which are
- disjoint canonical sets which are subsets of the extent.
- """
+ #def subExtents():
+ # """Return the direct sub-extents of the extent, if any, which are
+ # disjoint canonical sets which are subsets of the extent.
+ # """
class IDerivedExtent(IExtent):
"""An extent derived by combining extents"""
More information about the Zope-CVS
mailing list