dataclasses icon indicating copy to clipboard operation
dataclasses copied to clipboard

When API is stable, compare performance of ast vs. exec

Open ericvsmith opened this issue 7 years ago • 2 comments

The tag last-version-with-ast points to a version of the code that uses ast to create functions. The current master branch uses exec.

ericvsmith avatar Sep 02 '17 18:09 ericvsmith

JFTR, the reason why attrs went with exec is so it's possible to use pdb to step through our generated __init__.

hynek avatar Sep 25 '17 18:09 hynek

That's helpful, @hynek. Thanks for the insight.

ericvsmith avatar Sep 25 '17 19:09 ericvsmith