Skip to main content
Change incorrect name suggested by marcopolo1010
Source Link
kevpie
  • 26.2k
  • 2
  • 26
  • 28

Before abc was introduced you would see this frequently.

class Base(object):
    def go(self):
        raise NotImplementedNotImplementedError("Please Implement this method")


class Specialized(Base):
    def go(self):
        print "Consider me implemented"

Before abc was introduced you would see this frequently.

class Base(object):
    def go(self):
        raise NotImplemented("Please Implement this method")


class Specialized(Base):
    def go(self):
        print "Consider me implemented"

Before abc was introduced you would see this frequently.

class Base(object):
    def go(self):
        raise NotImplementedError("Please Implement this method")


class Specialized(Base):
    def go(self):
        print "Consider me implemented"
Source Link
kevpie
  • 26.2k
  • 2
  • 26
  • 28

Before abc was introduced you would see this frequently.

class Base(object):
    def go(self):
        raise NotImplemented("Please Implement this method")


class Specialized(Base):
    def go(self):
        print "Consider me implemented"