Changeset 98
- Timestamp:
- 07/23/07 18:28:33
- Files:
-
- trunk/geniusql/logic.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/geniusql/logic.py
r97 r98 345 345 f = eval(func, builtins) 346 346 self._load_func(f) 347 348 def is_constant(self, value): 349 """Return True if self.func == (lambda: value), False otherwise.""" 350 fc = self.func.func_code 351 return fc.co_code == 'd\x01\x00S' and fc.co_consts == (None, value) 347 352 348 353 … … 457 462 return expr 458 463 459
