David A. Wheeler wrote: > Any class defining __bool__ (formerly __nonzero__), or one implementing > Sized (which implement __len__), would be a generalized boolean.
Considering that *all* objects have at least an implicit implementation of __bool__ (that tests against None) I'm not sure that this would be a meaningful or useful concept. What use cases do you have in mind for this? -- Greg _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com