[Python-Dev] Contents of test_bool

2007-03-21 Thread Collin Winter
Is there any reason for test_bool to contain assertions like these? self.assertIs({}.has_key(1), False) self.assertIs({1:1}.has_key(1), True) A significant portion of the file is devoted to making sure various things return bools (isinstance, operator.*) or handle bools correctly (pickle,

Re: [Python-Dev] Contents of test_bool

2007-03-21 Thread Guido van Rossum
I think it was just expedient to group these together when the bool type was added. I wouldn't lose sleep over it either way. On 3/21/07, Collin Winter [EMAIL PROTECTED] wrote: Is there any reason for test_bool to contain assertions like these? self.assertIs({}.has_key(1), False)

Re: [Python-Dev] Contents of test_bool

2007-03-21 Thread Jack Diederich
On Wed, Mar 21, 2007 at 03:37:02PM -0500, Collin Winter wrote: Is there any reason for test_bool to contain assertions like these? self.assertIs({}.has_key(1), False) self.assertIs({1:1}.has_key(1), True) A significant portion of the file is devoted to making sure various things return