alexmojaki / alexmojaki/snoop

snoop exist in a for loop after 10 iterations

Open
#59 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
1.5k
Forks
42
PR merge metrics
No merged PRs in 30d

Description

I am using snoop and its very useful

I have a list variable of 20k items. I just want to see the tracing for few iterations only.

```
@snoop
def mapping(inputlist):
testing = {}
for eachDict in inputlist:
for k, v in eachDict.items():
testing[k] = v
# <------- want to exist snoop after 5 iterations
# <------- want to exist snoop after 10 iterations
return testing
```

HOw can i achieve the above thing

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.