当前位置: 首页>>代码示例>>Python>>正文


Python utils.isint方法代码示例

本文整理汇总了Python中future.utils.isint方法的典型用法代码示例。如果您正苦于以下问题:Python utils.isint方法的具体用法?Python utils.isint怎么用?Python utils.isint使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在future.utils的用法示例。


在下文中一共展示了utils.isint方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __mul__

# 需要导入模块: from future import utils [as 别名]
# 或者: from future.utils import isint [as 别名]
def __mul__(self, other):
        value = super(newint, self).__mul__(other)
        if isint(value):
            return newint(value)
        elif value is NotImplemented:
            return long(self) * other
        return value 
开发者ID:Soft8Soft,项目名称:verge3d-blender-addon,代码行数:9,代码来源:newint.py

示例2: __rmul__

# 需要导入模块: from future import utils [as 别名]
# 或者: from future.utils import isint [as 别名]
def __rmul__(self, other):
        value = super(newint, self).__rmul__(other)
        if isint(value):
            return newint(value)
        elif value is NotImplemented:
            return other * long(self)
        return value 
开发者ID:Soft8Soft,项目名称:verge3d-blender-addon,代码行数:9,代码来源:newint.py

示例3: __lshift__

# 需要导入模块: from future import utils [as 别名]
# 或者: from future.utils import isint [as 别名]
def __lshift__(self, other):
        if not isint(other):
            raise TypeError(
                "unsupported operand type(s) for <<: '%s' and '%s'" %
                (type(self).__name__, type(other).__name__))
        return newint(super(newint, self).__lshift__(other)) 
开发者ID:Soft8Soft,项目名称:verge3d-blender-addon,代码行数:8,代码来源:newint.py

示例4: __rshift__

# 需要导入模块: from future import utils [as 别名]
# 或者: from future.utils import isint [as 别名]
def __rshift__(self, other):
        if not isint(other):
            raise TypeError(
                "unsupported operand type(s) for >>: '%s' and '%s'" %
                (type(self).__name__, type(other).__name__))
        return newint(super(newint, self).__rshift__(other)) 
开发者ID:Soft8Soft,项目名称:verge3d-blender-addon,代码行数:8,代码来源:newint.py

示例5: __or__

# 需要导入模块: from future import utils [as 别名]
# 或者: from future.utils import isint [as 别名]
def __or__(self, other):
        if not isint(other):
            raise TypeError(
                "unsupported operand type(s) for |: '%s' and '%s'" %
                (type(self).__name__, type(other).__name__))
        return newint(super(newint, self).__or__(other)) 
开发者ID:Soft8Soft,项目名称:verge3d-blender-addon,代码行数:8,代码来源:newint.py

示例6: __xor__

# 需要导入模块: from future import utils [as 别名]
# 或者: from future.utils import isint [as 别名]
def __xor__(self, other):
        if not isint(other):
            raise TypeError(
                "unsupported operand type(s) for ^: '%s' and '%s'" %
                (type(self).__name__, type(other).__name__))
        return newint(super(newint, self).__xor__(other)) 
开发者ID:Soft8Soft,项目名称:verge3d-blender-addon,代码行数:8,代码来源:newint.py

示例7: __and__

# 需要导入模块: from future import utils [as 别名]
# 或者: from future.utils import isint [as 别名]
def __and__(self, other):
        if not isint(other):
            raise TypeError(
                "unsupported operand type(s) for &: '%s' and '%s'" %
                (type(self).__name__, type(other).__name__))
        return newint(super(newint, self).__and__(other)) 
开发者ID:remg427,项目名称:misp42splunk,代码行数:8,代码来源:newint.py


注:本文中的future.utils.isint方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。