📰 Abstract Base Classes News
Abstract Base Classes News Today
Fast, Ad-Free News Updates
Stay updated with breaking news from Abstract Base Classes. Real-time updates on events, politics, business and more.
April 11, 2024
Alloy Workshop There are still two slots available for the alloy workshop! I've been hard at work adding a bunch of teaching innovations to the class, which...
August 2, 2022
Let's make the CPython team regret adding pattern matching to Python!
July 9, 2022
Back in 2007 Python added Abstract Base Classes, which were intended to be used as interfaces: from abc import ABC class AbstractIterable(ABC): @abstractmethod def __iter__(self): while False: yield None def get_iterator(self): return self.__iter__() ABCs were added to strengthen the duck typing a little. If you inherited AbstractIterable, then everybody knew you had an implemented __iter__ method, and could handle that appropriately. Unsurprisingly, this idea never caught on. People instead pr...