A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2002-June/025061.html below:

Performance vs. Clarity vs. Convention

[Python-Dev] OT: Performance vs. Clarity vs. Convention [Python-Dev] OT: Performance vs. Clarity vs. ConventionPatrick 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





RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4