0

Do someone know an implementation of abc for older versions of Python (older than 2.6) ?

EDIT : I am for example looking for a snippet that would do the same thing as ABCMeta and abstractmethod, with same interface, I actually need to make a piece of code backward compatible

sebpiq
  • 7,540
  • 9
  • 52
  • 69

1 Answers1

1

The abc module itself happens to be backwards compatible. Just copy abc.py from 2.6 to somewhere on the pythonpath.

A. Coady
  • 54,452
  • 8
  • 34
  • 40