In Python 2.x when you want to mark a method as abstract, you can define it like so:
class Base: def foo(self): raise NotImplementedError(\"Subcl
Alternate answer:
@property def NotImplementedField(self): raise NotImplementedError class a(object): x = NotImplementedField class b(a): # x = 5 pass b().x a().x
This is like Evan's, but concise and cheap--you'll only get a single instance of NotImplementedField.