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-April/022173.html below:

[Python-Dev] Re: PEP 285: Adding a bool type

[Python-Dev] Re: PEP 285: Adding a bool typeAndrew Koenig ark@research.att.com
03 Apr 2002 10:59:13 -0500
>> So what's different?

Fredrik> more than one way to do it.  more than one concept to
Fredrik> explain to newcomers.  more than one "obviously correct"
Fredrik> way to do things.  less is more.  etc.

I'm a little confused, because it seems to me that Python already
has more than one way to do this particular thing.

Specifically: If I want to write a function that answers a yes/no
question, I have lots of possible ways of spelling yes (1, 2, "yes",
and so on) and lots of possible ways of spelling no (0, {}, None,
and so on).  There isn't a single preferred way.

-- 
Andrew Koenig, ark@research.att.com, http://www.research.att.com/info/ark




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