Return true if the object is a module. Module objects provide these attributes: __cached__ pathname to byte compiled file __doc__ documentation string __file__ filename (missing for built-in modules)
(object)
| 281 | |
| 282 | # ----------------------------------------------------------- type-checking |
| 283 | def ismodule(object): |
| 284 | """Return true if the object is a module. |
| 285 | |
| 286 | Module objects provide these attributes: |
| 287 | __cached__ pathname to byte compiled file |
| 288 | __doc__ documentation string |
| 289 | __file__ filename (missing for built-in modules)""" |
| 290 | return isinstance(object, types.ModuleType) |
| 291 | |
| 292 | def isclass(object): |
| 293 | """Return true if the object is a class. |
no outgoing calls
no test coverage detected