Package org.python.core
Class __builtin__
- java.lang.Object
-
- org.python.core.__builtin__
-
public class __builtin__ extends java.lang.ObjectThe builtin module. All builtin functions are defined here
-
-
Field Summary
Fields Modifier and Type Field Description static PyString__doc__zip
-
Constructor Summary
Constructors Constructor Description __builtin__()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PyObject__import__(java.lang.String name)static PyObject__import__(java.lang.String name, PyObject globals)static PyObject__import__(java.lang.String name, PyObject globals, PyObject locals)static PyObject__import__(java.lang.String name, PyObject globals, PyObject locals, PyObject fromlist)static PyObject__import__(java.lang.String name, PyObject globals, PyObject locals, PyObject fromlist, int level)static PyObjectabs(PyObject o)static PyObjectapply(PyObject o)static PyObjectapply(PyObject o, PyObject args)static PyObjectapply(PyObject o, PyObject args, PyDictionary kws)static booleancallable(PyObject obj)static charchr(int i)static intcmp(PyObject x, PyObject y)static PyTuplecoerce(PyObject o1, PyObject o2)static voiddelattr(PyObject obj, PyObject name)static PyObjectdir()static PyObjectdir(PyObject o)static PyObjectdivmod(PyObject x, PyObject y)static PyObjecteval(PyObject o)static PyObjecteval(PyObject o, PyObject globals)static PyObjecteval(PyObject o, PyObject globals, PyObject locals)static voidexecfile(java.lang.String name)static voidexecfile(java.lang.String name, PyObject globals)static voidexecfile(java.lang.String name, PyObject globals, PyObject locals)static voidexecfile_flags(java.lang.String name, PyObject globals, PyObject locals, CompilerFlags cflags)static voidfillWithBuiltins(PyObject dict)static PyObjectfilter(PyObject func, PyObject seq)static PyObjectfilterBaseString(PyObject func, PyBaseString seq, PyType stringType)static PyObjectfilterTuple(PyObject func, PyTuple seq)static PyObjectgetattr(PyObject obj, PyObject name)static PyObjectgetattr(PyObject obj, PyObject nameObj, PyObject def)static PyObjectglobals()static booleanhasattr(PyObject obj, PyObject nameObj)static PyIntegerhash(PyObject o)static PyStringhex(PyObject o)static longid(PyObject o)static PyObjectinput()static PyObjectinput(PyObject prompt)static PyStringintern(PyObject obj)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 obj)static PyObjectlocals()static PyObjectmap(PyObject[] argstar)static PyStringoct(PyObject o)static intord(PyObject c)Built-in Python function ord() applicable to the string-like typesstr,bytearray,unicode.static PyObjectpow(PyObject x, PyObject y)static PyObjectpow(PyObject x, PyObject y, PyObject z)static PyObjectrange(PyObject n)static PyObjectrange(PyObject start, PyObject stop)static PyObjectrange(PyObject ilow, PyObject ihigh, PyObject istep)static java.lang.Stringraw_input()Implementation ofraw_input()built-in function using the console directly.static java.lang.Stringraw_input(PyObject prompt)Implementation ofraw_input(prompt)built-in function using the console indirectly viasys.stdinandsys.stdin.static java.lang.Stringraw_input(PyObject prompt, PyObject file)Companion toraw_inputbuilt-in function used when the interactive interpreter is directed to a file.static PyObjectreduce(PyObject f, PyObject l)static PyObjectreduce(PyObject f, PyObject l, PyObject z)static PyObjectreload(PyModule o)static PyObjectreload(PyObject o)static PyObjectreload(PySystemState o)static PyStringrepr(PyObject o)static PyObjectreversed(PyObject seq)static voidsetattr(PyObject obj, PyObject name, PyObject value)static PyObjectsum(PyObject seq)static PyObjectsum(PyObject seq, PyObject result)static PyTypetype(PyObject o)static intunichr(int i)static intunichr(PyObject obj)static PyObjectvars()static PyObjectvars(PyObject o)static PyObjectzip()static PyObjectzip(PyObject[] argstar)
-
-
-
Field Detail
-
__doc__zip
public static PyString __doc__zip
-
-
Method Detail
-
fillWithBuiltins
public static void fillWithBuiltins(PyObject dict)
-
apply
public static PyObject apply(PyObject o, PyObject args, PyDictionary kws)
-
callable
public static boolean callable(PyObject obj)
-
unichr
public static int unichr(PyObject obj)
-
unichr
public static int unichr(int i)
-
chr
public static char chr(int i)
-
dir
public static PyObject dir()
-
execfile_flags
public static void execfile_flags(java.lang.String name, PyObject globals, PyObject locals, CompilerFlags cflags)
-
execfile
public static void execfile(java.lang.String name, PyObject globals)
-
execfile
public static void execfile(java.lang.String name)
-
filterBaseString
public static PyObject filterBaseString(PyObject func, PyBaseString seq, PyType stringType)
-
globals
public static PyObject globals()
-
id
public static long id(PyObject o)
-
input
public static PyObject input()
-
len
public static int len(PyObject obj)
-
locals
public static PyObject locals()
-
ord
public static final int ord(PyObject c) throws PyException
Built-in Python function ord() applicable to the string-like typesstr,bytearray,unicode.- Parameters:
c- string-like object of length 1- Returns:
- ordinal value of character or byte value in
- Throws:
PyException- (TypeError) if not a string-like type
-
raw_input
public static java.lang.String raw_input(PyObject prompt, PyObject file)
Companion toraw_inputbuilt-in function used when the interactive interpreter is directed to a file.- Parameters:
prompt- to issue at console before readfile- a file-like object to read from- Returns:
- line of text from the file (encoded as bytes values compatible with PyString)
-
raw_input
public static java.lang.String raw_input(PyObject prompt)
Implementation ofraw_input(prompt)built-in function using the console indirectly viasys.stdinandsys.stdin.- Parameters:
prompt- to issue at console before read- Returns:
- line of text from console (encoded as bytes values compatible with PyString)
-
raw_input
public static java.lang.String raw_input()
Implementation ofraw_input()built-in function using the console directly.- Returns:
- line of text from console (encoded as bytes values compatible with PyString)
-
reload
public static PyObject reload(PySystemState o)
-
vars
public static PyObject vars()
-
zip
public static PyObject zip()
-
__import__
public static PyObject __import__(java.lang.String name)
-
__import__
public static PyObject __import__(java.lang.String name, PyObject globals, PyObject locals)
-
__import__
public static PyObject __import__(java.lang.String name, PyObject globals, PyObject locals, PyObject fromlist)
-
-