News for hackers. Stuff that matters.
Re:Minimal examples of data structures and algorithms in Python by pryelluw on Monday April 24, 2017 @07:06PM (#14189259)
Stupid question:

Interface.py follows a pattern Ive seen in Java but not in Python. Am I simply too much of a Python noob?

Re:Minimal examples of data structures and algorithms in Python by orf on Monday April 24, 2017 @07:14PM (#14189311)
No, 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.
Re:Minimal examples of data structures and algorithms in Python by pryelluw on Tuesday April 25, 2017 @12:48AM (#14190852)
Ok, that's what I thought. Thanks for the reply.