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 details)
Built Distribution
File details
Details for the file 360blockscope-0.1.0.tar.gz
.
File metadata
- Download URL: 360blockscope-0.1.0.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.10.10 Linux/6.2.13-arch1-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 568517137ed4d115ee1517de33272b98404a0ff463bd25aa1856846df9547769 |
|
MD5 | 3331f78aab11998e285b4f3ccc00dbf4 |
|
BLAKE2b-256 | fe8359256ed05dddf55be9001678ce94427e59bc93bedd1a3564f05f0797232c |
File details
Details for the file 360blockscope-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: 360blockscope-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.10.10 Linux/6.2.13-arch1-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aaa07af98eff6cd75dc184102ade6cc749619050c9308a2b32ef6e2ada7891f3 |
|
MD5 | edcc0dca9482bc0c04422d7301e90b30 |
|
BLAKE2b-256 | 0c9215e78137525c6e9a71b24b4689580cb1cebd11ad3aab632ad0ba5780e165 |