Message403787
Pros:
Faster (about 3~5%) faster function creation, when function don't have annotations.
When function has annotation, function creation is much slower so performance gain become tiny.
Cons:
Somewhat backward incompatible:
```
>>> def foo(): "foo"
...
>>> def bar(): "bar"
...
>>> bar.__code__ = foo.__code__
>>> bar.__doc__
'foo' # was 'bar'
``` |
|
Date |
User |
Action |
Args |
2021-10-13 02:54:10 | methane | set | recipients:
+ methane |
2021-10-13 02:54:10 | methane | set | messageid: <1634093650.28.0.628544730358.issue45455@roundup.psfhosted.org> |
2021-10-13 02:54:10 | methane | link | issue45455 messages |
2021-10-13 02:54:10 | methane | create | |
|