I was trying to make a basic example of notify/listen and I've found a
big difference in the select() call between the examples directory 
and the official docs version .
The first one say:
but the docs say:
select.select([conn],,,5) == (,,):
Notice the difference in waiting input from cursor and from the
connection objects; which one is correct?
I'm using psycopg2 *v2.0* in Ubuntu 10.04, and if I try the docs
version (select([conn]...) it doesn't work:
marcelo <at> marcelo-laptop:~/desarrollo/pg_notify_example$ python notify_docs.py
Waiting for 'NOTIFY test'
Traceback (most recent call last):
File "notify_docs.py", line 13, in <module>
if select.select([conn],,,5) == (,,):
TypeError: argument must be an int, or have a fileno() method.
At first I tought there was a change in the psycopg2 *v2.2* version
(which will be available in Ubuntu 10.10), but the trunk/examples