Skip to main content

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


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)

Uploaded Source

Built Distribution

360blockscope-0.1.0-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

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

Hashes for 360blockscope-0.1.0.tar.gz
Algorithm Hash digest
SHA256 568517137ed4d115ee1517de33272b98404a0ff463bd25aa1856846df9547769
MD5 3331f78aab11998e285b4f3ccc00dbf4
BLAKE2b-256 fe8359256ed05dddf55be9001678ce94427e59bc93bedd1a3564f05f0797232c

See more details on using hashes here.

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

Hashes for 360blockscope-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 aaa07af98eff6cd75dc184102ade6cc749619050c9308a2b32ef6e2ada7891f3
MD5 edcc0dca9482bc0c04422d7301e90b30
BLAKE2b-256 0c9215e78137525c6e9a71b24b4689580cb1cebd11ad3aab632ad0ba5780e165

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page