block-scopes 0.2.3

Last updated:

0 purchases

block-scopes 0.2.3 Image
block-scopes 0.2.3 Images
Add to Cart

Description:

blockscopes 0.2.3

🩺 block-scopes
Block scoping in Python!



Table of Contents

Usage
Installation
License

Usage
from scopes import scope

before = "I'll be kept!"

with scope("keep_me", "keep_me_too"):
keep_me = "Keep me!"
lose_me = "Not me!"

keep_me_too = "Also... me!"

assert "before" in locals()
assert "keep_me" in locals()
assert "keep_me_too" in locals()

assert "lose_me" not in locals()

Installation
pip install block-scopes

License
block-scopes is distributed under the terms of the MIT license.

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.