lib.pubsub: TypeError: dict objects are unhashable

Very interesting stuff Josiah. It appears that the use of __hash__ by dict
is not as I understood from the docs (e.g. some statements clearly say that
__hash__ is used for bucket but it looks like that is not the whole story).

I'll run some test cases in pubsub with your suggestions and see what
happens (or go ahead if you have more time than I do, I'm swamped right
now). Definitely will be useful to get rid of this limitation in the
implementation, I think most would favor that and not mind the slight
overhead in the "similar subscriptions" case.

Thanks,
Oliver

···

-----Original Message-----
From: Josiah Carlson [mailto:jcarlson@uci.edu]

No, it's not. If I have some object foo, and I say:
    a = foo.bar #where bar is a method of foo
    b = foo.bar

a and b will be different. However, as long as we haven't
swapped foo.bar's binding, a.im_func and b.im_func will be
the same object (see my example later).

[...lots of good stuff removed for brevity...]