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

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

[Python-Dev] Re: PEP 285: Adding a bool typeFredrik Lundh fredrik@pythonware.com
Wed, 3 Apr 2002 17:08:03 +0200
mark wrote:

> Hmm, I'm not sure I follow.
>=20
> This is Python without the PEP:
>=20
> falseValues =3D [{}, [], 0, None]
> for x in falseValues:
>     if not x:
>         print "%s is 'false'." % x
>=20
> This is Python with the PEP:
>=20
> falseValues =3D [{}, [], 0, None, False]
> for x in falseValues:
>     if not x:
>         print "%s is 'false'." % x
>=20
> I don't see this vast conceptual chasm between pre and post PEP that =
you
> appear to see.  Please help me understand.

can you explain how your second example covers
everything that's in the PEP?

can you explain why the second version is "better",
in any sense of that word?

</F>




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