]> granicus.if.org Git - python/commit
PyObject_Dir():
authorGuido van Rossum <guido@python.org>
Mon, 10 Sep 2001 18:27:43 +0000 (18:27 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 10 Sep 2001 18:27:43 +0000 (18:27 +0000)
commit8dbd3d8c50e4f4c96f2466ad18ca33b2af4fe240
tree2aadc1e42a917785d86d21538dd10184dd697e81
parentb8755093109692d1708b87268c80a65b473e798e
PyObject_Dir():
  - use PyModule_Check() instead of PyObject_TypeCheck(), now we can.
  - don't assert that the __dict__ gotten out of a module is always
    a dictionary; check its type, and raise an exception if it's not.
Objects/object.c