org.python.core

Class __builtin__

public class __builtin__ extends Object implements ClassDictInit

The builtin module. All builtin functions are defined here
Field Summary
static PyString__doc__zip
Method Summary
static PyObjectabs(PyObject o)
static PyObjectapply(PyObject o, PyObject args)
static PyObjectapply(PyObject o, PyObject args, PyDictionary kws)
static PyObjectbool(PyObject o)
static booleancallable(PyObject o)
static charchr(int i)
static voidclassDictInit(PyObject dict)
Internal use only.
static intcmp(PyObject x, PyObject y)
static PyTuplecoerce(PyObject o1, PyObject o2)
static PyCodecompile(String data, String filename, String type)
static PyCodecompile(String data, String filename, String type, int flags, boolean dont_inherit)
static voiddelattr(PyObject o, PyString n)
static PyObjectdir(PyObject o)
static PyObjectdir()
static PyObjectdivmod(PyObject x, PyObject y)
static PyEnumerateenumerate(PyObject seq)
static PyObjecteval(PyObject o, PyObject globals, PyObject locals)
static PyObjecteval(PyObject o, PyObject globals)
static PyObjecteval(PyObject o)
static voidexecfile(String name, PyObject globals, PyObject locals)
static voidexecfile(String name, PyObject globals)
static voidexecfile(String name)
static voidexecfile_flags(String name, PyObject globals, PyObject locals, CompilerFlags cflags)
static PyObjectfilter(PyObject f, PyString s)
static PyObjectfilter(PyObject f, PyObject l)
static PyObjectgetattr(PyObject o, PyString n)
static PyObjectgetattr(PyObject o, PyString n, PyObject def)
static PyObjectglobals()
static booleanhasattr(PyObject o, PyString n)
static PyIntegerhash(PyObject o)
static PyStringhex(PyObject o)
static longid(PyObject o)
static PyObjectinput(PyObject prompt)
static PyObjectinput()
static PyStringintern(PyString s)
static booleanisinstance(PyObject obj, PyObject cls)
static booleanissubclass(PyObject derived, PyObject cls)
static PyObjectiter(PyObject obj)
static PyObjectiter(PyObject callable, PyObject sentinel)
static intlen(PyObject o)
static PyObjectlocals()
static PyObjectmap(PyObject[] argstar)
static PyObjectmax(PyObject[] l)
static PyObjectmin(PyObject[] l)
static PyStringoct(PyObject o)
static PyFileopen(String name)
Open a file read-only.
static PyFileopen(String name, String mode)
Open a file with the specified mode.
static PyFileopen(String name, String mode, int bufsize)
Open a file with the specified mode and buffer size.
static intord(char c)
static PyObjectpow(PyObject x, PyObject y)
static PyObjectpow(PyObject xi, PyObject yi, PyObject zi)
static PyObjectrange(int start, int stop, int step)
static PyObjectrange(int n)
static PyObjectrange(int start, int stop)
static Stringraw_input(PyObject prompt)
static Stringraw_input()
static PyObjectreduce(PyObject f, PyObject l, PyObject z)
static PyObjectreduce(PyObject f, PyObject l)
static PyObjectreload(PyModule o)
static PyObjectreload(PyJavaClass o)
static PyStringrepr(PyObject o)
static PyFloatround(double f, int digits)
static PyFloatround(double f)
static voidsetattr(PyObject o, PyString n, PyObject v)
static PySliceslice(PyObject start, PyObject stop, PyObject step)
static PySliceslice(PyObject start, PyObject stop)
static PySliceslice(PyObject stop)
static PyObjectsum(PyObject seq, PyObject result)
static PyObjectsum(PyObject seq)
static PyTupletuple(PyObject o)
static PyTypetype(PyObject o)
static charunichr(int i)
static PyObjectvars(PyObject o)
static PyObjectvars()
static PyObjectxrange(int start, int stop, int step)
static PyObjectxrange(int n)
static PyObjectxrange(int start, int stop)
static PyObjectzip(PyObject[] argstar)
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)

Field Detail

__doc__zip

public static PyString __doc__zip

Method Detail

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)

classDictInit

public static void classDictInit(PyObject dict)
Internal use only. Do not call this method explicit.

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, PyString n)

dir

public static PyObject dir(PyObject o)

dir

public static PyObject dir()

divmod

public static PyObject divmod(PyObject x, PyObject y)

enumerate

public static PyEnumerate enumerate(PyObject seq)

eval

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

eval

public static PyObject eval(PyObject o, PyObject globals)

eval

public static PyObject eval(PyObject o)

execfile

public static void execfile(String name, PyObject globals, PyObject locals)

execfile

public static void execfile(String name, PyObject globals)

execfile

public static void execfile(String name)

execfile_flags

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

filter

public static PyObject filter(PyObject f, PyString s)

filter

public static PyObject filter(PyObject f, PyObject l)

getattr

public static PyObject getattr(PyObject o, PyString n)

getattr

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

globals

public static PyObject globals()

hasattr

public static boolean hasattr(PyObject o, PyString 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(PyObject prompt)

input

public static PyObject input()

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)

open

public static PyFile open(String name)
Open a file read-only.

Parameters: name the file to open.

Throws: java.io.IOException

open

public static PyFile open(String name, String mode)
Open a file with the specified mode.

Parameters: name name of the file to open. mode open mode of the file. Use "r", "w", "r+", "w+" and "a".

Throws: java.io.IOException

open

public static PyFile open(String name, String mode, int bufsize)
Open a file with the specified mode and buffer size.

Parameters: 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.

Throws: java.io.IOException

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 start, int stop, int step)

range

public static PyObject range(int n)

range

public static PyObject range(int start, int stop)

raw_input

public static String raw_input(PyObject prompt)

raw_input

public static String raw_input()

reduce

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

reduce

public static PyObject reduce(PyObject f, PyObject l)

reload

public static PyObject reload(PyModule o)

reload

public static PyObject reload(PyJavaClass o)

repr

public static PyString repr(PyObject o)

round

public static PyFloat round(double f, int digits)

round

public static PyFloat round(double f)

setattr

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

slice

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

slice

public static PySlice slice(PyObject start, PyObject stop)

slice

public static PySlice slice(PyObject stop)

sum

public static PyObject sum(PyObject seq, PyObject result)

sum

public static PyObject sum(PyObject seq)

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(PyObject o)

vars

public static PyObject vars()

xrange

public static PyObject xrange(int start, int stop, int step)

xrange

public static PyObject xrange(int n)

xrange

public static PyObject xrange(int start, int stop)

zip

public static PyObject zip(PyObject[] argstar)

__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)
Jython homepage