The Art of Subclassing

A session at EuroPython 2011

Friday 24th June, 2011

2:30pm to 3:30pm (CET)

All problems have simple, easy-to-understand, logical wrong answers.
Subclassing in Python is no exception. Avoid the common pitfalls
and learn everything you need to know about how subclass in Python.

  • Overriding and extending
  • Calling your parents
  • The ellipse / circle problem -- what does a subclass mean?
  • Liskov Substitution Principle
  • Open Closed Principle
  • The facts of life when subclassing builtin types
  • How to Implement Cooperative Multiple Inheritance
  • A example of perfect and simple python diamond
  • Beware the Concrete C API

About the speaker

This person is speaking at this event.
Raymond Hettinger

Python core developer.Freelance programmer.Married to Rachel. bio from Twitter

Coverage of this session

Sign in to add slides, notes or videos to this session

EuroPython 2011

Italy Italy, Florence

20th26th June 2011

Tell your friends!


Time 2:30pm3:30pm CET

Date Fri 24th June 2011

Short URL


View the schedule



See something wrong?

Report an issue with this session