1 | 2  Next

All Samples(929)  |  Call(0)  |  Derive(0)  |  Import(929)
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.

All Samples(2932)  |  Call(2682)  |  Derive(0)  |  Import(250)
Run command with arguments.  Wait for command to complete, then
return the returncode attribute.

The arguments are the same as for the Popen constructor.  Example:

retcode = call(["ls", "-l"])

All Samples(216)  |  Call(0)  |  Derive(0)  |  Import(216)
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.

All Samples(487)  |  Call(428)  |  Derive(0)  |  Import(59)
Run command with arguments.  Wait for command to complete.  If
the exit code was zero then return, otherwise raise
CalledProcessError.  The CalledProcessError object will have the
return code in the returncode attribute.

The arguments are the same as for the Popen constructor.  Example:

check_call(["ls", "-l"])

All Samples(91)  |  Call(90)  |  Derive(0)  |  Import(1)
No Document.

All Samples(85)  |  Call(27)  |  Derive(4)  |  Import(54)
This exception is raised when a process run by check_call() or
check_output() returns a non-zero exit status.
The exit status will be stored in the returncode attribute;
check_output() will also store the output in the output attribute.

All Samples(75)  |  Call(71)  |  Derive(0)  |  Import(4)
Translate a sequence of arguments into a command line
string, using the same rules as the MS C runtime:

1) Arguments are delimited by white space, which is either a
   space or a tab.

2) A string surrounded by double quotation marks is
   interpreted as a single argument, regardless of white space
   contained within.  A quoted string can be embedded in an
   argument.(more...)

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)
No Document.

All Samples(50)  |  Call(47)  |  Derive(0)  |  Import(3)
Run command with arguments and return its output as a byte string.

If the exit code was non-zero it raises a CalledProcessError.  The
CalledProcessError object will have the return code in the returncode
attribute and output in the output attribute.

The arguments are the same as for the Popen constructor.  Example:

>>> check_output(["ls", "-l", "/dev/null"])
'crw-rw-rw- 1 root root 1, 3 Oct 18  2007 /dev/null\n'(more...)

All Samples(34)  |  Call(31)  |  Derive(0)  |  Import(3)
No Document.

All Samples(24)  |  Call(24)  |  Derive(0)  |  Import(0)
No Document.

All Samples(2)  |  Call(0)  |  Derive(0)  |  Import(2)
No Document.

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.

All Samples(6)  |  Call(5)  |  Derive(0)  |  Import(1)
No Document.

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)
No Document.

All Samples(3)  |  Call(0)  |  Derive(0)  |  Import(3)
No Document.

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)
No Document.

All Samples(3)  |  Call(0)  |  Derive(0)  |  Import(3)
No Document.

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)
No Document.

  1 | 2  Next