A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2002-April/022161.html below:

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

[Python-Dev] Re: PEP 285: Adding a bool type [Python-Dev] Re: PEP 285: Adding a bool typeMark McEahern marklists@mceahern.com
Wed, 3 Apr 2002 07:58:22 -0600
[Christian Tanzer]
>   For me, Python's (old) way of handling boolean conditions is one of
>   its great strengths. This wasn't always the case. When I started
>   using Python, I was slightly put off by the lack of a boolean data
>   type. But quite quickly I learned to appreciate Python's way of
>   dealing with this issue.

How does the PEP change "Python's (old) way of handling boolean conditions"?

Correct me if I'm wrong, but under the PEP, you can still do this:

	l = range(10)
	if l:
		print "My, the list is not empty!"

So what's different?

// mark




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