The problem is with the class WeakSet which has been added in Py3k. If compared
to a non-set class, it will raise an error. A common use case would be this:
>>> if o not in objects:
>>> print("yepp")
If one of the objects is a WeakSet, but o is not, the exception is raised.
To deal with it I created a helper function in pympler.compat which provides
the same functionality. Not beautiful but does the job. Do you have a better
suggestion to deal with it?
Is this a good default strategy for the future with with errors which we do not
think are caused by us?
cheers,
robert