[Python-Dev] OT: Performance vs. Clarity vs. Convention
Aahz
aahz@pythoncraft.com
Thu, 6 Jun 2002 00:03:33 -0400
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".
--
Aahz (aahz@pythoncraft.com) <*> http://www.pythoncraft.com/
"In the end, outside of spy agencies, people are far too trusting and
willing to help." --Ira Winkler