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 brett.cannon
Recipients bar.harel, brett.cannon, levkivskyi
Date 2019-11-22.23:38:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1574465900.65.0.615058423906.issue38878@roundup.psfhosted.org>
In-reply-to
Content
I just realized one problem with this is it explicitly requires subclassing the ABC while os.PathLike is supposed to represent a protocol (before typing.Protocol was a thing).

So why is it bad that in the example class B is considered a "subclass" of os.PathLike by implementing the protocol? Since it implements the expected protocol what exactly is being lost by not checking for an explicit registration or subclass?
History
Date User Action Args
2019-11-22 23:38:20brett.cannonsetrecipients: + brett.cannon, levkivskyi, bar.harel
2019-11-22 23:38:20brett.cannonsetmessageid: <1574465900.65.0.615058423906.issue38878@roundup.psfhosted.org>
2019-11-22 23:38:20brett.cannonlinkissue38878 messages
2019-11-22 23:38:20brett.cannoncreate