Python lazy evaluator

后端 未结 7 2287
心在旅途
心在旅途 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:56

    I'm a bit confused whether you seek caching or lazy evaluation. For the latter, check out the module lazy.py by Alberto Bertogli.

提交回复
热议问题