Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sum(<genexpr>) not represented correctly in call graph #134

Open
olbermann opened this issue May 11, 2023 · 0 comments
Open

sum(<genexpr>) not represented correctly in call graph #134

olbermann opened this issue May 11, 2023 · 0 comments
Assignees

Comments

@olbermann
Copy link

When I have "sum" of a generator expression, e.g.

import yappi

event = "minimal_example"
yappi.clear_stats()
yappi.start()

def f():
    a = sum(x for x in range(10))

f()

yappi.stop()
minimal_example_stats = yappi.get_func_stats()
minimal_example_stats._save_as_PSTAT(f"{event}.pstat")

the generator expression gets its own node. However it is not a child of the "f" node.

I would say that it should be.
E.g. if I change "sum" to "set" it is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants