whichmodule() should skip dummy package entries in sys.modules.
This fixes the charming, but unhelpful error message for >>> pickle.dumps(type.__new__) Can't pickle <built-in method __new__ of type object at 0x812a440>: it's not the same object as datetime.math.__new__ Bugfix candidate.
Showing
Please register or sign in to comment