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 NeilGirdhar
Recipients NeilGirdhar, eric.smith, rhettinger, sobolevn, veky
Date 2022-02-23.06:24:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1645597458.71.0.998538798784.issue46757@roundup.psfhosted.org>
In-reply-to
Content
@eric

Good thinking.  Would it make sense to add to the documentation as well that the __post_init__ methods aren't collected, and you should call super's __post_init__ if there is one using something like

        if hasattr(super(), "__post_init__"):
            super().__post_init__()

Noting this will make it easier to point to the docs if someone wonders when they see code like this.
History
Date User Action Args
2022-02-23 06:24:18NeilGirdharsetrecipients: + NeilGirdhar, rhettinger, eric.smith, veky, sobolevn
2022-02-23 06:24:18NeilGirdharsetmessageid: <1645597458.71.0.998538798784.issue46757@roundup.psfhosted.org>
2022-02-23 06:24:18NeilGirdharlinkissue46757 messages
2022-02-23 06:24:18NeilGirdharcreate