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 Gobot1234
Recipients AlexWaygood, Gobot1234, gvanrossum, kj, sobolevn
Date 2021-12-26.16:28:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1640536101.54.0.815544501045.issue46170@roundup.psfhosted.org>
In-reply-to
Content
> Do you have evidence that people make this particular mistake often? And that the suggested solution is indeed what they should use? Why would you want to subclass UserId?

I was just trying to implement something that I thought had a non-obvious error message and isn't necessarily initially obvious if you have the idea that NewType creates a new type/class. The documentation suggests this is what you should be doing instead of subclassing it
https://github.com/python/cpython/commit/342e800e974475cc302c46ed6d9f75276035278f#diff-8a0f115fde6769c122b771b6d0eca184c4580f7b5fabe2f0b0579c679424364fR101-R113

> Do we have examples of other error messages split across two lines like this?

No if you want me to remove it thats fine by me.
History
Date User Action Args
2021-12-26 16:28:21Gobot1234setrecipients: + Gobot1234, gvanrossum, sobolevn, kj, AlexWaygood
2021-12-26 16:28:21Gobot1234setmessageid: <1640536101.54.0.815544501045.issue46170@roundup.psfhosted.org>
2021-12-26 16:28:21Gobot1234linkissue46170 messages
2021-12-26 16:28:21Gobot1234create