> And, just for completeness, the "is" test is canonical precisely because > the interpreter guarantees there is only ever one object of type None, > so an identity test is always appropriate. Even the copy module doesn't > create copies ... >
Does the interpreter guarantee the same for False and True bools? -- http://mail.python.org/mailman/listinfo/python-list