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/2003-December/041343.html below:

[Python-Dev] Got None. Maybe Some?

[Python-Dev] Got None. Maybe Some? [Python-Dev] Got None. Maybe Some?Tim Peters tim.one at comcast.net
Mon Dec 22 12:50:24 EST 2003
[Guido]
> None inherits most of its semantics from C's NULL -- that's where None
> being false comes from.

I know that's where it came from, but Python adds its own twists.  If it
really wanted to act like C's NULL, then

    print >> None, "oops"

should segfault <wink>.  There's nothing "wrong" about None evaluating to
false in a Boolean context, it's simply one choice that *could* have made --
and better than most.


More information about the Python-Dev 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