+
Skip to content

snoop exist in a for loop after 10 iterations #59

Open
@syedidiflipt

Description

@syedidiflipt

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载