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 Orie
Recipients Orie
Date 2021-12-24.16:17:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1640362653.44.0.824482732412.issue46174@roundup.psfhosted.org>
In-reply-to
Content
Most object oriented languages provide interfaces as part of the core language, this helps bring better design principles to a team's workflows.

Today Python provides the ABC module for abstract base classes and the Protocol class from typing module as something that might resemble an interface.

Creating abstract classes to simulate interface behavior is pretty tedious and the Protocol class is not supported by IDEs for type hints, completions, bug findings, etc.

I think the Python community would really benefit if we have an interface keyword built into the core language and enforced by the interpreter, similar to how it's implemented in Java and C#.
History
Date User Action Args
2021-12-24 16:17:33Oriesetrecipients: + Orie
2021-12-24 16:17:33Oriesetmessageid: <1640362653.44.0.824482732412.issue46174@roundup.psfhosted.org>
2021-12-24 16:17:33Orielinkissue46174 messages
2021-12-24 16:17:33Oriecreate