This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author methane
Recipients methane
Date 2021-10-13.02:54:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1634093650.28.0.628544730358.issue45455@roundup.psfhosted.org>
In-reply-to
Content
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'
```
History
Date User Action Args
2021-10-13 02:54:10methanesetrecipients: + methane
2021-10-13 02:54:10methanesetmessageid: <1634093650.28.0.628544730358.issue45455@roundup.psfhosted.org>
2021-10-13 02:54:10methanelinkissue45455 messages
2021-10-13 02:54:10methanecreate