[EMAIL PROTECTED] wrote:

> > but seriously, unless you're writing an introspection tool, testing for
> > bool is pretty silly.  just use "if v" or "if not v", and leave the rest to
> > Python.
> >
> The OP's code(and his work around) doesn't look like he is testing for
> boolean

which of course explains why he wrote

    In some program I was testing if a variable was a boolean

in the post I replied to...

> but more like the data type of something. I thought there is some idiom
> in python which said something like "don't assume" ?

"think before you post" ?

</F>



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

Reply via email to