• Facebook
  • Twitter
  • Reddit
  • StumbleUpon
  • Digg
  • email

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)
int(x[, base]) -> integer

Convert a string or number to an integer, if possible.  A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!)  When converting a string, use
the optional base.  It is an error to supply a base when converting a
non-string.  If base is zero, the proper base is guessed based on the
string content.  If the argument is outside the integer range a
long object will be returned instead.

src/p/u/pushy-0.3/pushy/util/askpass.py   pushy(Download)
    # Fork.
    pid = os.fork()
    if pid > 0:
        for fd in range(subprocess.MAXFD):
            try:
                os.close(fd)
            except OSError: pass
    # Fork again - some UNIXes need this.
    pid = os.fork()
    if pid > 0:
        for fd in range(subprocess.MAXFD):
            try:
                os.close(fd)
            except OSError: pass

src/j/y/jython-HEAD/sandbox/tobias/jython/Lib/popen2.py   jython(Download)
 
__all__ = ["popen2", "popen3", "popen4"]
 
MAXFD = subprocess.MAXFD
_active = subprocess._active
_cleanup = subprocess._cleanup
 

src/j/y/jython-HEAD/jython/Lib/popen2.py   jython(Download)
 
__all__ = ["popen2", "popen3", "popen4"]
 
MAXFD = subprocess.MAXFD
_active = subprocess._active
_cleanup = subprocess._cleanup
 

src/j/y/jyweb-HEAD/trunk/release/01/Package/Lib/popen2.py   jyweb(Download)
 
__all__ = ["popen2", "popen3", "popen4"]
 
MAXFD = subprocess.MAXFD
_active = subprocess._active
_cleanup = subprocess._cleanup
 

src/j/y/jyweb-HEAD/release/01/Package/Lib/popen2.py   jyweb(Download)
 
__all__ = ["popen2", "popen3", "popen4"]
 
MAXFD = subprocess.MAXFD
_active = subprocess._active
_cleanup = subprocess._cleanup
 

src/p/y/python-ptrace-0.6.2/ptrace/debugger/child.py   python-ptrace(Download)
from sys import exc_info
from traceback import format_exception
from ptrace.os_tools import RUNNING_WINDOWS
from subprocess import MAXFD
from ptrace.binding import ptrace_traceme
from ptrace import PtraceError
from sys import exit
        raise ChildError(str(err))
 
    # Close all files except 0, 1, 2 and errpipe_write
    for fd in xrange(3, MAXFD):
        if fd == errpipe_write:
            continue
        try:

src/j/y/jython-HEAD/sandbox/wierzbicki/test27/Lib/popen2.py   jython(Download)
 
__all__ = ["popen2", "popen3", "popen4"]
 
MAXFD = subprocess.MAXFD
_active = subprocess._active
_cleanup = subprocess._cleanup