| 
     
      
      
      From: Gordon K. <gk...@us...> - 2003-02-27 16:52:53
      
     
   | 
There may be a bug in "notifies()" or I may be wrong - why
do I have to be sending events inorder to receive notifies?
-----
db.conn.query("listen event_1")
def do():
        x = db.conn.notifies()
	if x != None: print x
import time
start = time.time()
counter = 1
while 1:
        passed = time.time() - start
        if passed > counter:
                print counter
                counter = counter + 1
                if passed > 10: break
                # --- the unusual send
                #db.conn.query("listen event_1")
                db.conn.query("notify ignorable")
        do()
-----
pyPgSQL  2.3.1-10
(Debian Package: python2.2-pgsql_2.0-3.1_i386.deb)
PostgreSQL 7.2.1 on i686-pc-linux-gnu, compiled by GCC 2.95.4
libc6 2.2.5-14.3
 |