[IronPython] Should DBNull treat as false ?

Sakesun Roykiattisak sakesun at boonthavorn.com
Thu May 15 10:50:20 CEST 2008


Actually, I mean DBNull.Value

>>> bool(System.DBNull.Value)
True


On Thu, 15 May 2008 15:48:37 +0700, Davy Mitchell <daftspaniel at gmail.com>  
wrote:

> DBNull is a type. Appears all .Net types evaluate to False.
> e.g.
> from System import DBNull, Char
> print Char==True
> print DBNull==True
>
> both will print False.
>
> On Thu, May 15, 2008 at 9:09 AM, Sakesun Roykiattisak <
> sakesun at boonthavorn.com> wrote:
>
>>
>> Should DBNull treat as False ?
>>
>> Just a thought.
>> _______________________________________________
>> Users mailing list
>> Users at lists.ironpython.com
>> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>>
>
>
>





More information about the Ironpython-users mailing list