Python Considered Harmful

Barry A. Warsaw bwarsaw at cnri.reston.va.us
Mon Dec 27 11:04:41 EST 1999


>>>>> "Gordo" == Gordon McMillan <gmcm at hypernet.com> writes:

    Gordo> Practically, I often create "abstract" base classes which
    Gordo> specify interface and have "pass" (or "assert 1 == 0") as
    Gordo> method bodies.

Alternatively, starting with Python 1.5.2 you can just let the body
raise NotImplementedError.

-Barry




More information about the Python-list mailing list