Re: [Python-Dev] bool conversion wart?

2007-02-24 Thread Guido van Rossum
Can anyone who is in favor of changing this please come up with a spec for the new bool() signature? What would you do for the most common use case of bool(), which is converting an arbitrary value to its Boolean equivalent without using an if test or the "not not x" hack? -- --Guido van Rossum (

Re: [Python-Dev] bool conversion wart?

2007-02-24 Thread Georg Brandl
Guido van Rossum schrieb: > Can anyone who is in favor of changing this please come up with a spec > for the new bool() signature? What would you do for the most common > use case of bool(), which is converting an arbitrary value to its > Boolean equivalent without using an if test or the "not not

Re: [Python-Dev] bool conversion wart?

2007-02-24 Thread skip
Neal> Except, all the numeric types do, including int, float, and Neal> complex. But not bool. The fact that bool is a subclass of int is more historic than necessary. If not for Python's long usage of 0 and 1 to be the canonical False and True, I suspect that bool might have been imp

Re: [Python-Dev] [Distutils] unicode bug in distutils

2007-02-24 Thread Phillip J. Eby
At 02:47 PM 2/24/2007 -0600, Tarek Ziadé wrote: >I have created a setup.py file for distirbution and I bumped into >a small bug when i tried to set my name in the contact field (Tarek Ziadé) > >Using string (utf8 file): > >setup( > maintainer="Tarek Ziadé" >) > >leads to: > > File ".../lib/pyt

Re: [Python-Dev] bool conversion wart?

2007-02-24 Thread Guido van Rossum
On 2/24/07, Georg Brandl <[EMAIL PROTECTED]> wrote: > Guido van Rossum schrieb: > > Can anyone who is in favor of changing this please come up with a spec > > for the new bool() signature? What would you do for the most common > > use case of bool(), which is converting an arbitrary value to its >