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 serhiy.storchaka
Recipients gregory.p.smith, ncoghlan, rhettinger, serhiy.storchaka
Date 2021-05-02.06:04:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1619935468.55.0.276118182568.issue44003@roundup.psfhosted.org>
In-reply-to
Content
I meant that I looked up the code of functools.update_wrapper() and did not see that it sets the __defaults__ attribute.

In your example in msg392643 you use functools.update_wrapper() incorrectly. The first argument is wrapper, and the second argument is wrapped. updated_x is func.
History
Date User Action Args
2021-05-02 06:04:28serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, gregory.p.smith, ncoghlan
2021-05-02 06:04:28serhiy.storchakasetmessageid: <1619935468.55.0.276118182568.issue44003@roundup.psfhosted.org>
2021-05-02 06:04:28serhiy.storchakalinkissue44003 messages
2021-05-02 06:04:28serhiy.storchakacreate