org.python.core

Class __builtin__


public class __builtin__
extends java.lang.Object

The builtin module. All builtin functions are defined here

Field Summary

static PyString
__doc__zip

Method Summary

static PyObject
__import__(String name)
static PyObject
__import__(String name, PyObject globals)
static PyObject
__import__(String name, PyObject globals, PyObject locals)
static PyObject
__import__(String name, PyObject globals, PyObject locals, PyObject fromlist)
static PyObject
abs(PyObject o)
static PyObject
apply(PyObject o, PyObject args)
static PyObject
apply(PyObject o, PyObject args, PyDictionary kws)
static PyObject
bool(PyObject o)
static boolean
callable(PyObject o)
static char
chr(int i)
static int
cmp(PyObject x, PyObject y)
static PyTuple
coerce(PyObject o1, PyObject o2)
static PyCode
compile(String data, String filename, String type)
static PyCode
compile(String data, String filename, String type, int flags, boolean dont_inherit)
static void
delattr(PyObject o, String n)
static PyObject
dir()
static PyObject
dir(PyObject o)
static PyObject
divmod(PyObject x, PyObject y)
static PyEnumerate
enumerate(PyObject seq)
static PyObject
eval(PyObject o)
static PyObject
eval(PyObject o, PyObject globals)
static PyObject
eval(PyObject o, PyObject globals, PyObject locals)
static void
execfile(String name)
static void
execfile(String name, PyObject globals)
static void
execfile(String name, PyObject globals, PyObject locals)
static void
execfile_flags(String name, PyObject globals, PyObject locals, CompilerFlags cflags)
static void
fillWithBuiltins(PyObject dict)
static PyObject
filter(PyObject f, PyObject l)
static PyObject
filter(PyObject f, PyString s)
static PyObject
getattr(PyObject o, String n)
static PyObject
getattr(PyObject o, String n, PyObject def)
static PyObject
globals()
static boolean
hasattr(PyObject o, String n)
static PyInteger
hash(PyObject o)
static PyString
hex(PyObject o)
static long
id(PyObject o)
static PyObject
input()
static PyObject
input(PyObject prompt)
static PyString
intern(PyString s)
static boolean
isinstance(PyObject obj, PyObject cls)
static boolean
issubclass(PyObject derived, PyObject cls)
static PyObject
iter(PyObject obj)
static PyObject
iter(PyObject callable, PyObject sentinel)
static int
len(PyObject o)
static PyObject
locals()
static PyObject
map(PyObject[] argstar)
static PyObject
max(PyObject[] l)
static PyObject
min(PyObject[] l)
static PyString
oct(PyObject o)
static int
ord(char c)
static PyObject
pow(PyObject x, PyObject y)
static PyObject
pow(PyObject xi, PyObject yi, PyObject zi)
static PyObject
range(int n)
static PyObject
range(int start, int stop)
static PyObject
range(int start, int stop, int step)
static String
raw_input()
static String
raw_input(PyObject prompt)
static PyObject
reduce(PyObject f, PyObject l)
static PyObject
reduce(PyObject f, PyObject l, PyObject z)
static PyObject
reload(PyJavaClass o)
static PyObject
reload(PyModule o)
static PyString
repr(PyObject o)
static PyFloat
round(double f)
static PyFloat
round(double f, int digits)
static void
setattr(PyObject o, String n, PyObject v)
static PySlice
slice(PyObject stop)
static PySlice
slice(PyObject start, PyObject stop)
static PySlice
slice(PyObject start, PyObject stop, PyObject step)
static PyObject
sum(PyObject seq)
static PyObject
sum(PyObject seq, PyObject result)
static PyTuple
tuple(PyObject o)
static PyType
type(PyObject o)
static char
unichr(int i)
static PyObject
vars()
static PyObject
vars(PyObject o)
static PyObject
xrange(int n)
static PyObject
xrange(int start, int stop)
static PyObject
xrange(int start, int stop, int step)
static PyObject
zip(PyObject[] argstar)

Field Details

__doc__zip

public static PyString __doc__zip

Method Details

__import__

public static PyObject __import__(String name)

__import__

public static PyObject __import__(String name,
                                  PyObject globals)

__import__

public static PyObject __import__(String name,
                                  PyObject globals,
                                  PyObject locals)

__import__

public static PyObject __import__(String name,
                                  PyObject globals,
                                  PyObject locals,
                                  PyObject fromlist)

abs

public static PyObject abs(PyObject o)

apply

public static PyObject apply(PyObject o,
                             PyObject args)

apply

public static PyObject apply(PyObject o,
                             PyObject args,
                             PyDictionary kws)

bool

public static PyObject bool(PyObject o)

callable

public static boolean callable(PyObject o)

chr

public static char chr(int i)

cmp

public static int cmp(PyObject x,
                      PyObject y)

coerce

public static PyTuple coerce(PyObject o1,
                             PyObject o2)

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)

delattr

public static void delattr(PyObject o,
                           String n)

dir

public static PyObject dir()

dir

public static PyObject dir(PyObject o)

divmod

public static PyObject divmod(PyObject x,
                              PyObject y)

enumerate

public static PyEnumerate enumerate(PyObject seq)

eval

public static PyObject eval(PyObject o)

eval

public static PyObject eval(PyObject o,
                            PyObject globals)

eval

public static PyObject eval(PyObject o,
                            PyObject globals,
                            PyObject locals)

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)

execfile_flags

public static void execfile_flags(String name,
                                  PyObject globals,
                                  PyObject locals,
                                  CompilerFlags cflags)

fillWithBuiltins

public static void fillWithBuiltins(PyObject dict)

filter

public static PyObject filter(PyObject f,
                              PyObject l)

filter

public static PyObject filter(PyObject f,
                              PyString s)

getattr

public static PyObject getattr(PyObject o,
                               String n)

getattr

public static PyObject getattr(PyObject o,
                               String n,
                               PyObject def)

globals

public static PyObject globals()

hasattr

public static boolean hasattr(PyObject o,
                              String n)

hash

public static PyInteger hash(PyObject o)

hex

public static PyString hex(PyObject o)

id

public static long id(PyObject o)

input

public static PyObject input()

input

public static PyObject input(PyObject prompt)

intern

public static PyString intern(PyString s)

isinstance

public static boolean isinstance(PyObject obj,
                                 PyObject cls)

issubclass

public static boolean issubclass(PyObject derived,
                                 PyObject cls)

iter

public static PyObject iter(PyObject obj)

iter

public static PyObject iter(PyObject callable,
                            PyObject sentinel)

len

public static int len(PyObject o)

locals

public static PyObject locals()

map

public static PyObject map(PyObject[] argstar)

max

public static PyObject max(PyObject[] l)

min

public static PyObject min(PyObject[] l)

oct

public static PyString oct(PyObject o)

ord

public static final int ord(char c)

pow

public static PyObject pow(PyObject x,
                           PyObject y)

pow

public static PyObject pow(PyObject xi,
                           PyObject yi,
                           PyObject zi)

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)

reduce

public static PyObject reduce(PyObject f,
                              PyObject l)

reduce

public static PyObject reduce(PyObject f,
                              PyObject l,
                              PyObject z)

reload

public static PyObject reload(PyJavaClass o)

reload

public static PyObject reload(PyModule o)

repr

public static PyString repr(PyObject o)

round

public static PyFloat round(double f)

round

public static PyFloat round(double f,
                            int digits)

setattr

public static void setattr(PyObject o,
                           String n,
                           PyObject v)

slice

public static PySlice slice(PyObject stop)

slice

public static PySlice slice(PyObject start,
                            PyObject stop)

slice

public static PySlice slice(PyObject start,
                            PyObject stop,
                            PyObject step)

sum

public static PyObject sum(PyObject seq)

sum

public static PyObject sum(PyObject seq,
                           PyObject result)

tuple

public static PyTuple tuple(PyObject o)

type

public static PyType type(PyObject o)

unichr

public static char unichr(int i)

vars

public static PyObject vars()

vars

public static PyObject vars(PyObject o)

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)

zip

public static PyObject zip(PyObject[] argstar)

Jython homepage