Did I find the right examples for you? yes no

All Samples(34)  |  Call(0)  |  Derive(0)  |  Import(34)
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/b/a/baepython_sdk-HEAD/examples/weibotest/0/mako/util.py   baepython_sdk(Download)
 
try:
    from inspect import CO_VARKEYWORDS, CO_VARARGS
    def inspect_func_args(fn):
        co = fn.func_code
            nargs = nargs + 1
        varkw = None
        if co.co_flags & CO_VARKEYWORDS:
            varkw = co.co_varnames[nargs]
 

src/h/o/hortonworks-sandbox-HEAD/desktop/core/ext-py/Mako-0.7.2/mako/util.py   hortonworks-sandbox(Download)
 
try:
    from inspect import CO_VARKEYWORDS, CO_VARARGS
    def inspect_func_args(fn):
        co = fn.func_code
            nargs = nargs + 1
        varkw = None
        if co.co_flags & CO_VARKEYWORDS:
            varkw = co.co_varnames[nargs]
 

src/h/u/hue-HEAD/desktop/core/ext-py/Mako-0.8.1/mako/compat.py   hue(Download)
 
try:
    from inspect import CO_VARKEYWORDS, CO_VARARGS
    def inspect_func_args(fn):
        if py3k:
            nargs = nargs + 1
        varkw = None
        if co.co_flags & CO_VARKEYWORDS:
            varkw = co.co_varnames[nargs]
 

src/m/i/microblog-HEAD/flask/lib/python2.7/site-packages/sqlalchemy/util/langhelpers.py   microblog(Download)
 
try:
    from inspect import CO_VARKEYWORDS
    def inspect_func_args(fn):
        co = fn.func_code
        nargs = co.co_argcount
        names = co.co_varnames
        args = list(names[:nargs])
        has_kw = bool(co.co_flags & CO_VARKEYWORDS)

src/k/o/kokoropy-HEAD/kokoropy/packages/sqlalchemy/util/langhelpers.py   kokoropy(Download)
try:
    # TODO: who doesn't have this constant?
    from inspect import CO_VARKEYWORDS
 
    def inspect_func_args(fn):
        co = fn.__code__
        nargs = co.co_argcount
        names = co.co_varnames
        args = list(names[:nargs])
        has_kw = bool(co.co_flags & CO_VARKEYWORDS)

src/l/u/LuoYunCloud-HEAD/lyweb/lib/SQLAlchemy-0.8.2/lib/sqlalchemy/util/langhelpers.py   LuoYunCloud(Download)
 
try:
    from inspect import CO_VARKEYWORDS
 
    def inspect_func_args(fn):
        co = fn.func_code
        nargs = co.co_argcount
        names = co.co_varnames
        args = list(names[:nargs])
        has_kw = bool(co.co_flags & CO_VARKEYWORDS)

src/l/u/LuoYunCloud-HEAD/lyweb/lib/Mako-0.8.1/mako/compat.py   LuoYunCloud(Download)
 
try:
    from inspect import CO_VARKEYWORDS, CO_VARARGS
    def inspect_func_args(fn):
        if py3k:
            nargs = nargs + 1
        varkw = None
        if co.co_flags & CO_VARKEYWORDS:
            varkw = co.co_varnames[nargs]
 

src/s/q/SQLAlchemy-0.9.4/lib/sqlalchemy/util/langhelpers.py   SQLAlchemy(Download)
try:
    # TODO: who doesn't have this constant?
    from inspect import CO_VARKEYWORDS
 
    def inspect_func_args(fn):
        co = fn.__code__
        nargs = co.co_argcount
        names = co.co_varnames
        args = list(names[:nargs])
        has_kw = bool(co.co_flags & CO_VARKEYWORDS)

src/s/y/SynoDLNAtrakt-HEAD/lib/mako/compat.py   SynoDLNAtrakt(Download)
 
try:
    from inspect import CO_VARKEYWORDS, CO_VARARGS
    def inspect_func_args(fn):
        if py3k:
            nargs = nargs + 1
        varkw = None
        if co.co_flags & CO_VARKEYWORDS:
            varkw = co.co_varnames[nargs]
 

src/s/y/SynoDLNAtrakt-HEAD/lib/sqlalchemy/util/langhelpers.py   SynoDLNAtrakt(Download)
 
try:
    from inspect import CO_VARKEYWORDS
    def inspect_func_args(fn):
        co = fn.func_code
        nargs = co.co_argcount
        names = co.co_varnames
        args = list(names[:nargs])
        has_kw = bool(co.co_flags & CO_VARKEYWORDS)

  1 | 2 | 3 | 4  Next