Backport 1.70 and 1.71 (which really go together):
1.70: 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__ 1.71: Fiddle comments and variable names in whichmodule().
Showing
Please
register
or
sign in
to comment