__init__.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:packaging 作者: blockstack 项目源码 文件源码
def isint(obj):
    """
    Deprecated. Tests whether an object is a Py3 ``int`` or either a Py2 ``int`` or
    ``long``.

    Instead of using this function, you can use:

        >>> from future.builtins import int
        >>> isinstance(obj, int)

    The following idiom is equivalent:

        >>> from numbers import Integral
        >>> isinstance(obj, Integral)
    """

    return isinstance(obj, numbers.Integral)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号