Block scoping for python
Project description
Block scoping in python
Just to be clear, I made this as a joke.
import block_scoping as bs
def main():
x = 7
with bs():
y = x + 4
print(f'y: {y}') # y: 11
x -= 3
print('x: {x}') # x: 4
print('y: {y}') # UnboundLocalError
main()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
360blockscope-0.1.0.tar.gz
(1.9 kB
view hashes)
Built Distribution
Close
Hashes for 360blockscope-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aaa07af98eff6cd75dc184102ade6cc749619050c9308a2b32ef6e2ada7891f3 |
|
MD5 | edcc0dca9482bc0c04422d7301e90b30 |
|
BLAKE2b-256 | 0c9215e78137525c6e9a71b24b4689580cb1cebd11ad3aab632ad0ba5780e165 |