A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2005-September/313498.html below:

Question About Logic In Python

Question About Logic In Python Question About Logic In PythonBryan Olson fakeaddress at nowhere.org
Fri Sep 23 14:01:36 EDT 2005
Steven D'Aprano wrote:

> Or wait, I have thought of one usage case: if you are returning a value
> that you know will be used only as a flag, you should convert it into a
> bool. Are there any other uses for bool()?

We could, of course, get along without it. One use for
canonical true and false values is to give 'not' something
sensible to return.


-- 
--Bryan

More information about the Python-list mailing list

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