Did I find the right examples for you? yes no

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)
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/p/y/pyant-0.0.5/pyant/extensions/file.py   pyant(Download)
        'S_IEXEC' : stat.S_IEXEC,
        'UF_NODUMP' : stat.UF_NODUMP,
        'UF_IMMUTABLE' : stat.UF_IMMUTABLE,
        'UF_APPEND' : stat.UF_APPEND,
        'UF_OPAQUE' : stat.UF_OPAQUE,

src/f/i/files-1.1.1/files.py   files(Download)
            s |= stat.UF_NODUMP
        if "immutable" in flags:
            s |= stat.UF_IMMUTABLE
        if "append" in flags:
            s |= stat.UF_APPEND

src/t/o/toggle-readonly-HEAD/toggle_readonly.py   toggle-readonly(Download)
        os.chmod(filename, flag)
    else:  
        flag = ~stat.UF_IMMUTABLE
        if not state:
            flag = flag;
        return not (fileAtt & stat.S_IWRITE)
    else:
        return not (fileAtt & stat.UF_IMMUTABLE)
 
 

src/t/r/TrustRouter-HEAD/client/packaging/Windows/Python32/Lib/test/test_posix.py   TrustRouter(Download)
    def _test_chflags_regular_file(self, chflags_func, target_file):
        st = os.stat(target_file)
        self.assertTrue(hasattr(st, 'st_flags'))
        chflags_func(target_file, st.st_flags | stat.UF_IMMUTABLE)
        try:
 
        posix.lchflags(_DUMMY_SYMLINK,
                       dummy_symlink_st.st_flags | stat.UF_IMMUTABLE)
        try:
            new_testfn_st = os.stat(support.TESTFN)

src/p/y/pytaint-HEAD/Python-2.7.5-pytaint/Lib/test/test_posix.py   pytaint(Download)
        # ZFS returns EOPNOTSUPP when attempting to set flag UF_IMMUTABLE.
        try:
            chflags_func(target_file, st.st_flags | stat.UF_IMMUTABLE)
        except OSError as err:
            if err.errno != errno.EOPNOTSUPP:
        try:
            posix.lchflags(_DUMMY_SYMLINK,
                           dummy_symlink_st.st_flags | stat.UF_IMMUTABLE)
        except OSError as err:
            if err.errno != errno.EOPNOTSUPP:

src/s/t/static-python-HEAD/Lib/test/test_posix.py   static-python(Download)
 
        # ZFS returns EOPNOTSUPP when attempting to set flag UF_IMMUTABLE.
        flags = st.st_flags | stat.UF_IMMUTABLE
        try:
            chflags_func(target_file, flags, **kwargs)
        for fn in (posix.lchflags, chflags_nofollow):
            # ZFS returns EOPNOTSUPP when attempting to set flag UF_IMMUTABLE.
            flags = dummy_symlink_st.st_flags | stat.UF_IMMUTABLE
            try:
                fn(_DUMMY_SYMLINK, flags)

src/c/p/cpython-HEAD/Lib/test/test_posix.py   cpython(Download)
 
        # ZFS returns EOPNOTSUPP when attempting to set flag UF_IMMUTABLE.
        flags = st.st_flags | stat.UF_IMMUTABLE
        try:
            chflags_func(target_file, flags, **kwargs)
        for fn in (posix.lchflags, chflags_nofollow):
            # ZFS returns EOPNOTSUPP when attempting to set flag UF_IMMUTABLE.
            flags = dummy_symlink_st.st_flags | stat.UF_IMMUTABLE
            try:
                fn(_DUMMY_SYMLINK, flags)

src/i/r/ironpython3-HEAD/Src/StdLib/Lib/test/test_posix.py   ironpython3(Download)
 
        # ZFS returns EOPNOTSUPP when attempting to set flag UF_IMMUTABLE.
        flags = st.st_flags | stat.UF_IMMUTABLE
        try:
            chflags_func(target_file, flags, **kwargs)
        for fn in (posix.lchflags, chflags_nofollow):
            # ZFS returns EOPNOTSUPP when attempting to set flag UF_IMMUTABLE.
            flags = dummy_symlink_st.st_flags | stat.UF_IMMUTABLE
            try:
                fn(_DUMMY_SYMLINK, flags)

src/p/y/python2.7-mod-HEAD/Lib/test/test_posix.py   python2.7-mod(Download)
    def _test_chflags_regular_file(self, chflags_func, target_file):
        st = os.stat(target_file)
        self.assertTrue(hasattr(st, 'st_flags'))
        chflags_func(target_file, st.st_flags | stat.UF_IMMUTABLE)
        try:
 
        posix.lchflags(_DUMMY_SYMLINK,
                       dummy_symlink_st.st_flags | stat.UF_IMMUTABLE)
        try:
            new_testfn_st = os.stat(test_support.TESTFN)

src/p/y/Py2crazy-HEAD/Python-2.7.5/Lib/test/test_posix.py   Py2crazy(Download)
        # ZFS returns EOPNOTSUPP when attempting to set flag UF_IMMUTABLE.
        try:
            chflags_func(target_file, st.st_flags | stat.UF_IMMUTABLE)
        except OSError as err:
            if err.errno != errno.EOPNOTSUPP:
        try:
            posix.lchflags(_DUMMY_SYMLINK,
                           dummy_symlink_st.st_flags | stat.UF_IMMUTABLE)
        except OSError as err:
            if err.errno != errno.EOPNOTSUPP: