[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