[Python-Dev] Re: [Python-checkins] python/dist/src/Lib types.py,1.26,1.27
Thu, 23 May 2002 10:22:51 +0200
Skip Montanaro wrote:
> Martin> Since that needs to be conditional (with catching ImportError
> Martin> and all), I think you can achieve internal consistency and
> Martin> minimal changes with introducing a name BooleanType into
> Martin> xmlrpclib.
> That's fine. It's /F's call how he wants to do it. I assigned that patch
> to him.
Replacing Boolean in xmlrpclib with the new type should be done with
care, though, since esp. on the encoding side things may go wrong
due to the fact that boolean values are already being returned
by comparisons and other builtin functions.
You may end up encoding booleans where you really wanted to encode
> Martin> BTW, why is it "BooleanType" and not "BoolType"? It's also
> Martin> IntType and not IntegerType.
> I like to read compound words where the elements are themselves words.
> StringType doesn't match "str". Either way is fine with me.
> I suppose if I really had my druthers I'd have preferred the function was
> called "boole()" and the object in the types module "BooleType". After all,
> that's how George's name was spelled... ;-)
Good catch :-)
CEO eGenix.com Software GmbH
Company & Consulting: http://www.egenix.com/
Python Software: http://www.egenix.com/files/python/