Re: Re: PgBoolean
| Newsgroups | gmane.comp.python.db.pypgsql.user |
|---|---|
| Message-ID | <20021121021800.YSJE29104.out011.verizon.net@[127.0.0.1]> |
Thanks for the python tips. I guess it shows that I am new to the language :-)
Unfortunately, I still can't seem to get this right. I tried this:
if retval:
print "YES"
else:
print "NO"
When executed, this prints out "YES" when the statement "print retval" prints either
[<PgBoolean instance at 0x401c890c: Value: True>]
- or -
[<PgBoolean instance at 0x401c8900: Value: False>]
What am I doing wrong?
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf