I definitvely vote for adding such a package to the stdlib (or at least a
 symilar publish/subscrive and observer implementation). It's useful in a
 wide range of programs.<br><br><br><div class="gmail_quote">2010/6/2 Carl Banks <span dir="ltr"><<a href="mailto:pavlovevidence@gmail.com">pavlovevidence@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
On May 26, 4:26 am, Tom <<a href="mailto:tom.brow...@gmail.com">tom.brow...@gmail.com</a>> wrote:<br>
> I vote for adding the Python package "pubsub" to the Python standard<br>
> library.  It has recently been added to wxpython (replacing the old<br>
> wx.lib.pubsub package), but it has application to non-gui programs as<br>
> well.<br>
<br>
<br>
Well, I can definitely see a case for adding something like this to<br>
the standard library.  If there is a standard publish-subscribe<br>
implementation, then different third-party packages can use it in a<br>
consistent way together.  It can open whole paradigms of package<br>
integration.<br>
<br>
However, I'm not sure this particular library is the one to use, and I<br>
would not be in favor of throwing the first publish-subscribe<br>
implentation that comes by into the standard library, at least not<br>
without a whole lot of vetting first.  (They did that with optparse<br>
and the Python community has been paying for it ever since.)<br>
<br>
I think it has a pretty good chance of being accepted, too.  The<br>
publish-subscribe pattern, if you will, seems to have been implemented<br>
separately in many places.  The logging module in the standard library<br>
uses something like this.  Qt's signal/slot mechanism is another<br>
variation.  I'm sure there's lots more.  I've noticed that pointing<br>
out lots of independetnly crafted examples in the wild, and especially<br>
in the standard library, works quite well.<br>
<br>
<br>
Carl Banks<br>
<font color="#888888">--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</font></blockquote></div><br>