Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

exalt


Python 3.7 Not production ready Travis status

exalt provides a convenient way to dynamically create closures and bind them to a custom namespace. This is primarily useful for preserving an execution-context when calling into a different function.

Example

from exalt import promote


def baz():
    return bar


def foo():
    bar = "baz"

    return promote(baz, **locals())()


print(foo())

↓

baz

Installation

pip3 install --user exalt

Disclaimer

exalt heavily relies on CPython implementation details and probably shouldn't be used in a production environment.

About

Namespace promotion made easy. ↑

Topics

Resources

Stars

6 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages