Dr. Dobb's Python-URL! - weekly Python news and links (Mar 26)

Aahz aahz at pythoncraft.com
Thu Mar 28 22:42:01 EST 2002


In article <slrnaa3hrh.183.philh at comuno.freeserve.co.uk>,
phil hunt <philh at comuno.freeserve.co.uk> wrote:
> 
>class MyClass(BaseClass):
>   def __init__(self):
>      pass
>   def method1(self, a, b, c):
>      pass
>   def method2(self, d, e):
>      pass
>   def method3(self, f): 
>      pass

Where you write "pass", I prefer to write "raise NotImplementedError".
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

Why is this newsgroup different from all other newsgroups?



More information about the Python-list mailing list