EdmontonPy
Inspired by the Python community, we hope to foster a strong, supportive, and proficient Python community in the Edmonton area.
Web: edmontonpy.com
Twitter: @edmontonpy
Slack: devedmonton.slack.com
#meetup-edmontonpy
When standing as a group of people, always leave room for 1 person to join your group."
Looking for jobs? Looking for great people?
please post/visit the #opportunities channel at
class Animal():
def sound(self):
raise NotImplementedError(
"Animals Make Noises: implement this method"
)
class Cat(Animal):
def __init__(self, name):
self.name = name
def sound(self):
print(f"{self.name} says: Meow")
class Dog(Animal):
def __init__(self, name):
self.name = name
if __name__ == "__main__":
# this will be okay and won't throw an error
cat = Cat("Ghost")
cat.sound()
# below will raise an error, because we
# didn't implement sound() method
dog = Dog("Gary")
dog.sound()
Raising NotImplementedError if a method needs to be implemented.
The Real World Factory Design Pattern
Lewis Gunsch
A Bowl of Soup?; Web Scraping with Python
Sam Ezebunandu
NEXT MEETUP ON FEBRUARY 10th 2020
By EdmontonPy
Inspired by the Python community, we hope to foster a strong, supportive, and proficient Python community in the Edmonton area.