As you already noticed, I have refactored and cleaned up pgnotify and the corresponding tests a bit. They run also much faster now. The code is still pretty much compatible to the original pgnotify, and still uses the same name. One thing I added besides the payload bit is a "listening" attribute that allows checking the current status of the listener from outside and a close() method that will close the corresponding db connection. In a next step I would like to rename the whole thing, e.g. the class could be "WhenNotified" and the method could be DB.when_notified(). What do you think?

-- Christoph
_______________________________________________
PyGreSQL mailing list
[email protected]
https://mail.vex.net/mailman/listinfo.cgi/pygresql

Reply via email to