New submission from Or <orieee...@gmail.com>:

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#.

----------
messages: 409149
nosy: Orie
priority: normal
severity: normal
status: open
title: Feature Request for Python Interfaces
type: enhancement
versions: Python 3.11

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue46174>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to