pre-PEP for optional 'pass'

Christian Tanzer tanzer at swing.co.at
Thu Apr 18 03:15:20 EDT 2002


Andy Gimblett <gimbo at ftech.net> wrote:

> How about this?
>
> class MyClass:
>     """Class encapsulating a Twiddle.  Unfinished.  Document me.  XXX"""
>     def __init__(self, x, ,y, z):
>         """Not yet implemented. XXX"""
>     def getTwiddle(self):
>         """Not yet implemented. XXX"""
>     def setTwiddle(self, twiddle):
>         """Not yet implemented. XXX"""
>
> where you can grep for XXX to find unfinished business - very handy.

If you want to go that road, I'd prefer

        raise NotImplementedError

over the doc-string. Add XXX according to taste.

-- 
Christian Tanzer                                         tanzer at swing.co.at
Glasauergasse 32                                       Tel: +43 1 876 62 36
A-1130 Vienna, Austria                                 Fax: +43 1 877 66 92






More information about the Python-list mailing list