]> granicus.if.org Git - python/commit
SF bug #963956: Bad error mesage when subclassing a module
authorRaymond Hettinger <python@rcn.com>
Sat, 5 Jun 2004 06:16:22 +0000 (06:16 +0000)
committerRaymond Hettinger <python@rcn.com>
Sat, 5 Jun 2004 06:16:22 +0000 (06:16 +0000)
commitf2c0830585a4c58c2e0cb6acbfc4efa628563c12
tree41fdb4f638ed33aac170a1bc017eb20d08e745a4
parent0096e262ffe836b4c7511158678f9e257cc3a020
SF bug #963956:   Bad error mesage when subclassing a module

Add a more informative message for the common user mistake of subclassing
from a module name rather than another class (i.e. random instead of
random.random).
Python/ceval.c