Prints all executed lines
Project description
Prints all executed lines
pip install tracealllines
Tested against Windows 10 / Python 3.10 / Anaconda
from tracealllines import print_execution, enable_trace_all, disable_trace_all
colorprint = "green"
@print_execution(
file=__file__, color=colorprint, logfile="c:\\logogog.txt", enabled=True
)
def fu():
for x in range(2):
print(x * 1)
@print_execution(file=__file__, color=colorprint, logfile=None, enabled=True)
def fu3():
for x in range(3):
print(x * 25)
@print_execution(file=__file__, color=colorprint, logfile=None, enabled=True)
def fu2():
for x in range(2):
print(x * 150)
if __name__ == "__main__":
fu()
fu3()
fu2()
file, color, logfile = __file__, colorprint, "c:\\logogog.txt"
enable_trace_all(file, color, logfile)
fu2()
disable_trace_all()
fu3()
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
tracealllines-0.10.tar.gz
(4.1 kB
view details)
Built Distribution
File details
Details for the file tracealllines-0.10.tar.gz
.
File metadata
- Download URL: tracealllines-0.10.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6845112eac6b7ed6765b09682bb127bb588ff93669be806e0f48e906ffe7f3ee |
|
MD5 | 1d5fd31aff32a6b6a9f11226f39b8d1e |
|
BLAKE2b-256 | 272d2cc7c18eaa4bc2def94d8768d29ddb35fe73b81710657e3c7f9b4cc48d8d |
File details
Details for the file tracealllines-0.10-py3-none-any.whl
.
File metadata
- Download URL: tracealllines-0.10-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83c7ccfef082ac3035e79dbc3b6e00b3e448fb4ccdf4734c30265d2c2f9692f1 |
|
MD5 | 0a2edf7eca995d4b60ac35ad0d83d392 |
|
BLAKE2b-256 | 33993167525612cdc82cb2d295dd22c4a5dedb76728028afeeef22d9df5e501e |