]> granicus.if.org Git - python/commit
whichmodule() should skip dummy package entries in sys.modules.
authorJeremy Hylton <jeremy@alum.mit.edu>
Thu, 19 Sep 2002 22:57:26 +0000 (22:57 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Thu, 19 Sep 2002 22:57:26 +0000 (22:57 +0000)
commit065a5ab8fb89b6f082a8361b860b48c00f21c301
tree55bfa8724eb1d8e40e54d5246a4b8f3a126b93e1
parent16849a7e5308dc07f14847d1691a533fe26d729a
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.
Lib/pickle.py