On Tue, Jul 17, 2012 at 6:23 PM, Andrew Berg <bahamutzero8...@gmail.com> wrote: > On 7/17/2012 2:08 AM, Steven D'Aprano wrote: >> The default behaviour is that every object is something, hence true-like, >> unless explicitly coded to be treated as false-like. Since both loggers >> and functions are objects, they are true-like unless the default is >> overridden. > I am aware of the default behavior, but the reason for it still eludes me.
There has to be something. This way, you can use None in place of any object, in the same way that a null pointer would be used in C; any object is true, None isn't. What other default makes more sense? ChrisA -- http://mail.python.org/mailman/listinfo/python-list