|
From: Sasha <nd...@ma...> - 2006-01-18 19:28:27
|
Oops, bool cannot be subclassed in python, but bool is a subclass of int, so it makes sense to derive from int_, only which int? In python bool inherits all number methods from int and overrides only and, or, and xor. Maybe bool_ can do the same ... -- sasha On 1/18/06, Sasha <nd...@ma...> wrote: > >>> from numpy import * > >>> isinstance(bool_(True), bool) > False > |