Python ._builtin_from_name() Examples

The following are 11 code examples of ._builtin_from_name(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module , or try the search function .
Example #1
Source File: imp.py    From kobo-predict with BSD 2-Clause "Simplified" License 5 votes vote down vote up
def init_builtin(name):
    """**DEPRECATED**

    Load and return a built-in module by name, or None is such module doesn't
    exist
    """
    try:
        return _builtin_from_name(name)
    except ImportError:
        return None 
Example #2
Source File: imp.py    From GraphicDesignPatternByPython with MIT License 5 votes vote down vote up
def init_builtin(name):
    """**DEPRECATED**

    Load and return a built-in module by name, or None is such module doesn't
    exist
    """
    try:
        return _builtin_from_name(name)
    except ImportError:
        return None 
Example #3
Source File: imp.py    From Fluid-Designer with GNU General Public License v3.0 5 votes vote down vote up
def init_builtin(name):
    """**DEPRECATED**

    Load and return a built-in module by name, or None is such module doesn't
    exist
    """
    try:
        return _builtin_from_name(name)
    except ImportError:
        return None 
Example #4
Source File: imp.py    From Imogen with MIT License 5 votes vote down vote up
def init_builtin(name):
    """**DEPRECATED**

    Load and return a built-in module by name, or None is such module doesn't
    exist
    """
    try:
        return _builtin_from_name(name)
    except ImportError:
        return None 
Example #5
Source File: imp.py    From scylla with Apache License 2.0 5 votes vote down vote up
def init_builtin(name):
    """**DEPRECATED**

    Load and return a built-in module by name, or None is such module doesn't
    exist
    """
    try:
        return _builtin_from_name(name)
    except ImportError:
        return None 
Example #6
Source File: imp.py    From python with Apache License 2.0 5 votes vote down vote up
def init_builtin(name):
    """**DEPRECATED**

    Load and return a built-in module by name, or None is such module doesn't
    exist
    """
    try:
        return _builtin_from_name(name)
    except ImportError:
        return None 
Example #7
Source File: imp.py    From python2017 with MIT License 5 votes vote down vote up
def init_builtin(name):
    """**DEPRECATED**

    Load and return a built-in module by name, or None is such module doesn't
    exist
    """
    try:
        return _builtin_from_name(name)
    except ImportError:
        return None 
Example #8
Source File: imp.py    From Project-New-Reign---Nemesis-Main with GNU General Public License v3.0 5 votes vote down vote up
def init_builtin(name):
    """**DEPRECATED**

    Load and return a built-in module by name, or None is such module doesn't
    exist
    """
    try:
        return _builtin_from_name(name)
    except ImportError:
        return None 
Example #9
Source File: imp.py    From odoo13-x64 with GNU General Public License v3.0 5 votes vote down vote up
def init_builtin(name):
    """**DEPRECATED**

    Load and return a built-in module by name, or None is such module doesn't
    exist
    """
    try:
        return _builtin_from_name(name)
    except ImportError:
        return None 
Example #10
Source File: imp.py    From Carnets with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
def init_builtin(name):
    """**DEPRECATED**

    Load and return a built-in module by name, or None is such module doesn't
    exist
    """
    try:
        return _builtin_from_name(name)
    except ImportError:
        return None 
Example #11
Source File: imp.py    From android_universal with MIT License 5 votes vote down vote up
def init_builtin(name):
    """**DEPRECATED**

    Load and return a built-in module by name, or None is such module doesn't
    exist
    """
    try:
        return _builtin_from_name(name)
    except ImportError:
        return None