Get Lanyrd on your mobile (iPhone, Android and more) - check it out here

The Art of Subclassing

A session at PyCon US 2012

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 making effective use of inheritance in Python.

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
  • Facts of life when subclassing builtin types
  • Cooperative Multiple Inheritance
  • Common subclassing patterns
  • Use of the double underscore

About the speaker

This person is speaking at this event.
Raymond Hettinger

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

Next session in E3

12:10pm Stop Writing Classes by Jack Diederich

Coverage of this session

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

Tell your friends!

When

Time 11:30am12:10pm PST

Date Fri 9th March 2012

Short URL

lanyrd.com/spbyw

Official session page

us.pycon.org/…e/presentation/399/

View the schedule

Topics

See something wrong?

Report an issue with this session