Python: Overriding and Super methods

Inheritance in Python allows for a class to have access to the parent (super) class it is inheriting from. For example: PhoneDialer: def __init__(self, number): self.number = number We could have a child class called Caller, that inherits from PhoneDialer, like so: Caller(PhoneDialer): def caller_dials(self): sip = sipp(self.number) self.number was Continue Reading

Python Memcache exercise

In section 2 of the Udemy course on Intermediate Python we had some homework… to write out the code to store some cached values to a dictionary and have methods to set new values, get values, delete specific values and flush the cache. My solution was the following: class Memcache: Continue Reading