3 ms·
Stupid question: Interface.py follows a pattern Ive seen in Java but not in Python. Am I simply too much of a Python noob?
by pryelluw 10y ago
Stupid question:
Interface.py follows a pattern Ive seen in Java but not in Python. Am I simply too much of a Python noob?
- orf 10y agoNo, it's not a particularly pythonic thing to do, but it's not uncommon to have a bass class with some methods that should be implemented by children and throw an exception if not. That's not quite an interface as Java has it though.
- pryelluw 10y agoOk, that's what I thought. Thanks for the reply.