def is_extension_module(filename):
    return os.path.splitext(filename)[1].lower() in ('.so','.pyd')
Return whether the given filename is an extension module.
dataset/ETHPy150Open ipython/ipython-py3k/IPython/testing/plugin/ipdoctest.py/is_extension_module