The builtin module. All builtin functions are defined here
__import__
public static PyObject __import__(String name)
callable
public static boolean callable(PyObject o)
chr
public static char chr(int i)
classDictInit
public static void classDictInit(PyObject dict)
Internal use only. Do not call this method explicit.
compile
public static PyCode compile(String data,
String filename,
String type)
compile
public static PyCode compile(String data,
String filename,
String type,
int flags,
boolean dont_inherit)
execfile
public static void execfile(String name)
execfile
public static void execfile(String name,
PyObject globals)
execfile
public static void execfile(String name,
PyObject globals,
PyObject locals)
open
public static PyFile open(String name)
Open a file read-only.
open
public static PyFile open(String name,
String mode)
Open a file with the specified mode.
name
- name of the file to open.mode
- open mode of the file. Use "r", "w", "r+", "w+" and "a".
open
public static PyFile open(String name,
String mode,
int bufsize)
Open a file with the specified mode and buffer size.
name
- name of the file to open.mode
- open mode of the file. Use "r", "w", "r+", "w+" and "a".bufsize
- size of the internal buffer. Not currently used.
ord
public static final int ord(char c)
range
public static PyObject range(int n)
range
public static PyObject range(int start,
int stop)
range
public static PyObject range(int start,
int stop,
int step)
raw_input
public static String raw_input()
raw_input
public static String raw_input(PyObject prompt)
round
public static PyFloat round(double f)
round
public static PyFloat round(double f,
int digits)
unichr
public static char unichr(int i)
xrange
public static PyObject xrange(int n)
xrange
public static PyObject xrange(int start,
int stop)
xrange
public static PyObject xrange(int start,
int stop,
int step)