News Score: Score the News, Sort the News, Rewrite the Headlines

Uncommon Uses of Python in Commonly Used Libraries

To learn how to build more maintainable and usable Python libraries, I’ve been reading some of the most widely used Python packages. Along the way, I learned some things about Python that are off the beaten path. Here are a few things I didn’t know before. Using super() in base classes Python’s super() lets us inherit base classes (aka super or parent classes) without having to explicitly refer to the base class. It’s usually used in the __init__ method. While this might be simply a nice-to-have...

Read more at eugeneyan.com

© News Score  score the news, sort the news, rewrite the headlines