[Python-Dev] OT: Performance vs. Clarity vs. Convention

Patrick K. O'Brien pobrien@orbtech.com
Wed, 5 Jun 2002 23:38:51 -0500


[Aahz]
>
> On Wed, Jun 05, 2002, Patrick K. O'Brien wrote:
> >
> > class Element:
> >
> >     def __str__(self):
> >         pass
>
> Dunno about other people's opinions, but I have a strong distaste for
> creating methods whose body contains pass.  I always use "raise
> NotImplementedError".

I agree. That's a bad habit of mine that I need to change. Thanks for the
reminder.

---
Patrick K. O'Brien
Orbtech