Re: Re: PgBoolean

<[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.