(fact)
return property(getit)
Create the automagic property corresponding to a fact.
Create the automagic property corresponding to a fact.
Create the automagic property corresponding to a fact .
def make_property(fact):
    """Create the automagic property corresponding to a fact."""

    def getit(self):
        try:
            return self._assumptions[fact]
        except KeyError:
            if self._assumptions is self.default_assumptions:
                self._assumptions = self.default_assumptions.copy()
            return _ask(fact, self)

    getit.func_name = as_property(fact)
    return property(getit)
def make_property ( fact ) : def getit ( self ) : try : return self . _assumptions [ fact ] except KeyError : if self . _assumptions is self . default_assumptions : self . _assumptions = self . default_assumptions . copy ( ) return _ask ( fact , self ) getit . func_name = as_property ( fact ) return property ( getit )