Python lazy evaluator

后端 未结 7 2293
心在旅途
心在旅途 2020-12-19 05:14

Is there a Pythonic way to encapsulate a lazy function call, whereby on first use of the function f(), it calls a previously bound function g(Z) an

7条回答
  •  佛祖请我去吃肉
    2020-12-19 05:54

    Just for completness, here is a link for my lazy-evaluator decorator recipe:

    https://bitbucket.org/jsbueno/metapython/src/f48d6bd388fd/lazy_decorator.py

提交回复
热议问题