Changeset 399
- Timestamp:
- 01/22/07 23:28:39
- Files:
-
- trunk/units.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/units.py
r398 r399 117 117 118 118 class UnitJoin(object): 119 """A join between two Unit classes.""" 119 120 120 121 def __init__(self, class1, class2, leftbiased=None): … … 200 201 raise TypeError("Joined classes must be UnitJoin or Unit subclasses.") 201 202 __rand__ = __radd__ 203 204 def __eq__(self, other): 205 return (self.class1 == other.class1 and 206 self.class2 == other.class2 and 207 self.leftbiased == other.leftbiased and 208 self.path == other.path) 202 209 203 210
