Buy Tickets
Starting from 350€
Support unavailable
Please try again later

Method restrictions (abstract, final, @Override etc.) and implementing them for Python

by Péter Szabó for EuroPython 2012

The earlier a bug is discovered, the cheaper it is to fix it. Method restrictions (such as abstract, final and @Override) help the programmer in discovering incompatibilities between a class and its subclass early (i.e. at startup time for Python and at compile time for compiled languages). Python doesn’t provide method restrictions out of the box. To implement them, we take a deep dive to the realms of Python metaprogramming (decorators, metaclasses, method wrappers, traceback inspection and builtins). Lots of short and code examples will be provided to show the building blocks and how we combine them.


Source code download:

in on Tuesday 3 July at 14:30 See schedule



  1. Gravatar

    Where can I find the code ? The slides ?

  2. Gravatar
    Added links to the abstract.

    Please note that I'm planning to do some last-minute fixes on the source code ( and to add more unit tests. If you need a stable version, please try next week.

New comment

60 minutes

Tagged as

Our Sponsors
Python Experts
Personnel development with 360° feedback
SSL Matrix
Wanna sponsor?