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/2001-November/018745.html below:

[Python-Dev] What's a PyStructSequence ?

[Python-Dev] What's a PyStructSequence ? [Python-Dev] What's a PyStructSequence ?Michel Pelletier michel@zope.com
Tue, 27 Nov 2001 12:38:45 -0800
"M.-A. Lemburg" wrote:

> Also, why should we hide something useful from the Python
> programmer if it's there anyway ? (One thing I've always wondered
> about is why Python doesn't expose Py_True and Py_False through
> the builtin module...)

I have no idea why they are not exposed, of course. but my guess would
be because there is no boolean type, there is no need for them.  I
myself have never needed a boolean type, "zero" or "empty" have always
worked for me as a boolean false.

What are they used at the C level for?

> I guess, I'll add a constructor to mx.Tools, my repository
> for missing builtins ;-)

Does mx.Tools offer a boolean type?

-Michel



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