curry

Partial application of Python methods
Download

curry Ranking & Summary

Advertisement

  • Rating:
  • License:
  • BSD License
  • Price:
  • FREE
  • Publisher Name:
  • Malthe Borch

curry Tags


curry Description

Partial application of Python methods curry is a Python library that provides a mechanism to use partial application on bound methods using AST (abstract syntax tree) transformation. You can use partial application as an optimization method, an alternative to code generation (either indirectly or through the AST abstraction).The concrete approach lies somewhere between "currying" and cooking. We interpret the Python-code manually by walking the AST, following standard Python logic (literally interpreting every node). Computations that can be carried out while walking are saved for later reference (and discarded when possible). When possible, computations are carried out using the running interpreter. Requirements: · Python What's New in This Release: Features: · Added pickling capability (experimental), both as standalone functions and integrated with cooking machinery to preserve and restore object state. Bugfixes: · Make sure assignments are made to names only.


curry Related Software