try except and set-trace in one line with content manager
Project description
using context manager to achieve one line set_trace, since there is no local variable recorded, inspect module is used to recover nonlocal variable in dict variable: nonlocals
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
one-line-catch-1.0.0.tar.gz
(1.4 kB
view details)
File details
Details for the file one-line-catch-1.0.0.tar.gz.
File metadata
- Download URL: one-line-catch-1.0.0.tar.gz
- Upload date:
- Size: 1.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
90b30db6df5b9b2da3975a1883482319e19e5db42587d1a7e1a7f842a9187136
|
|
| MD5 |
f5c912d693fb4b022403ca7f76a498e0
|
|
| BLAKE2b-256 |
fc95acb5bef0ed6ea1958ee9c553d114ec1002c4bd868f3eaa6f221ca59b48fa
|