mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
PEP 3147
This commit is contained in:
parent
0e59cc3fc3
commit
28a691b7fd
39 changed files with 1203 additions and 287 deletions
|
@ -54,6 +54,7 @@ def ismodule(object):
|
|||
"""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)"""
|
||||
return isinstance(object, types.ModuleType)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue