alexmojaki / alexmojaki/snoop

snoop exist in a for loop after 10 iterations

Offen
#59 3 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Python
Sterne
1.5k
Forks
42
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.