]> granicus.if.org Git - python/commit
Do for hasattr() what was done for getattr()
authorJeremy Hylton <jeremy@alum.mit.edu>
Mon, 30 Jul 2001 22:45:19 +0000 (22:45 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Mon, 30 Jul 2001 22:45:19 +0000 (22:45 +0000)
commit302b54acd91f999c039f9a3618f734dbdfb74467
tree00b55c3c5beca1cd87dca09e9bcf4f952f32a4a8
parentc974bf4dc2031e8af5c64ac968a4a19054f5b097
Do for hasattr() what was done for getattr()

Namely, an exception is raised if the second arg to hasattr() is not a
string or Unicode.
Python/bltinmodule.c