Bengt Richter wrote:

> But isn't bool supposed to be a singleton class/type ?
>
> >>> [bool(x) for x in 0, 0.0, [], {}, False]
> [False, False, False, False, False]
> >>> [id(bool(x)) for x in 0, 0.0, [], {}, False]
> [505014288, 505014288, 505014288, 505014288, 505014288]

"False" is an ordinary global object, not an object factory or a singleton 
class.

</F> 



-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to