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

[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 12:14:27 -0600
[Ka-Ping Yee]
> Consider this:
>
>     >>> a = [0, False, 1, True]
>
>     >>> print a
>     [0, 0, 1, 1]
>
>     >>> for x in a: print x
>     0
>     0
>     1
>     1

Actually, if you use the sample code provided by the PEP and run this you
get:

  >>> a = [0, False, 1, True]
  >>> print a
  [0, False, 1, True]

  >>> for x in a: print x
  0
  False
  1
  True





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