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

Guido van Rossum guido@python.org
Thu, 06 Jun 2002 08:58:21 -0400


> > 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".

But that has different semantics!

--Guido van Rossum (home page: http://www.python.org/~guido/)