Full threadagumonkey·one guy made a "pure" decorator that used the ast module to assess the purity (to a certain extent) of a function and allow optimisation on the wayfuncrazy and funView on HN