Did I find the right examples for you? yes no

All Samples(11)  |  Call(0)  |  Derive(0)  |  Import(11)
int(x=0) -> int or long
int(x, base=10) -> int or long

Convert a number or string to an integer, or return 0 if no arguments
are given.  If x is floating point, the conversion truncates towards zero.
If x is outside the integer range, the function returns a long instead.

If x is not a number or if base is given, then x must be a string or
Unicode object representing an integer literal in the given base.  The
literal can be preceded by '+' or '-' and be surrounded by whitespace.(more...)

src/m/o/modern-python-example-HEAD/lib/python2.7/site-packages/logilab/common/testlib.py   modern-python-example(Download)
    # FIXME : this does not work as expected / breaks tests on testlib
    # however testlib does not work on py3k for many reasons ...
    from inspect import CO_GENERATOR
else:
    from compiler.consts import CO_GENERATOR

src/s/w/swirl-0.1.2/swirl.py   swirl(Download)
    def isgeneratorfunction(obj):
        return bool((inspect.isfunction(obj) or inspect.ismethod(obj)) and
                    obj.func_code.co_flags & inspect.CO_GENERATOR)
 
__version__ = '0.1.2'

src/s/w/swirl-HEAD/swirl.py   swirl(Download)
    def isgeneratorfunction(obj):
        return bool((inspect.isfunction(obj) or inspect.ismethod(obj)) and
                    obj.func_code.co_flags & inspect.CO_GENERATOR)
 
__version__ = '0.1.2'

src/m/d/mdf-HEAD/mdf/nodes.py   mdf(Download)
    # evaluating nodes
    if (isinstance(func, (types.FunctionType, types.MethodType)) 
    and func.__code__.co_flags & inspect.CO_GENERATOR):
        return True
    elif isinstance(func, TypeType) \

src/v/u/vumi-HEAD/vumi/tests/helpers.py   vumi(Download)
import json
import os
from functools import wraps
from inspect import CO_GENERATOR
 
        """
        method = getattr(self, self._testMethodName)
        if method.func_code.co_flags & CO_GENERATOR:
            # We have a generator that isn't wrapped in @inlineCallbacks
            e = ValueError(

src/r/o/rolf-HEAD/ve/lib/python2.7/site-packages/logilab/common/testlib.py   rolf(Download)
    # FIXME : this does not work as expected / breaks tests on testlib
    # however testlib does not work on py3k for many reasons ...
    from inspect import CO_GENERATOR
else:
    from compiler.consts import CO_GENERATOR

src/p/e/perfectpython-HEAD/pylib/logilab/common/testlib.py   perfectpython(Download)
    # FIXME : this does not work as expected / breaks tests on testlib
    # however testlib does not work on py3k for many reasons ...
    from inspect import CO_GENERATOR
else:
    from compiler.consts import CO_GENERATOR

src/p/y/pylint-mode-HEAD/ftplugin/python/logilab/common/testlib.py   pylint-mode(Download)
    # FIXME : this does not work as expected / breaks tests on testlib
    # however testlib does not work on py3k for many reasons ...
    from inspect import CO_GENERATOR
else:
    from compiler.consts import CO_GENERATOR

src/i/n/input-lib-HEAD/packages/logilab-common/testlib.py   input-lib(Download)
    # FIXME : this does not work as expected / breaks tests on testlib
    # however testlib does not work on py3k for many reasons ...
    from inspect import CO_GENERATOR
else:
    from compiler.consts import CO_GENERATOR

src/e/m/Employee-Scheduler-HEAD/logilab-common-0.57.2/testlib.py   Employee-Scheduler(Download)
    # FIXME : this does not work as expected / breaks tests on testlib
    # however testlib does not work on py3k for many reasons ...
    from inspect import CO_GENERATOR
else:
    from compiler.consts import CO_GENERATOR

  1 | 2  Next