Package org.python.core
Class __builtin__
java.lang.Object
org.python.core.__builtin__
The builtin module. All builtin functions are defined here
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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__import__(String name, PyObject globals, PyObject locals, PyObject fromlist, int level) static PyObjectstatic PyObjectstatic PyObjectstatic PyObjectapply(PyObject o, PyObject args, PyDictionary kws) static booleanstatic charchr(int i) static intstatic PyTuplestatic voidstatic PyObjectdir()static PyObjectstatic PyObjectstatic PyObjectstatic PyObjectstatic PyObjectstatic voidstatic voidstatic voidstatic voidexecfile_flags(String name, PyObject globals, PyObject locals, CompilerFlags cflags) static voidfillWithBuiltins(PyObject dict) static PyObjectstatic PyObjectfilterBaseString(PyObject func, PyBaseString seq, PyType stringType) static PyObjectfilterTuple(PyObject func, PyTuple seq) static PyObjectstatic PyObjectstatic PyObjectglobals()static booleanstatic PyIntegerstatic PyStringstatic longstatic PyObjectinput()static PyObjectstatic PyStringstatic booleanisinstance(PyObject obj, PyObject cls) static booleanissubclass(PyObject derived, PyObject cls) static PyObjectstatic PyObjectstatic intstatic PyObjectlocals()static PyObjectstatic PyStringstatic final intBuilt-in Python function ord() applicable to the string-like typesstr,bytearray,unicode.static PyObjectstatic PyObjectstatic PyObjectstatic PyObjectstatic PyObjectstatic StringImplementation ofraw_input()built-in function using the console directly.static StringImplementation ofraw_input(prompt)built-in function using the console indirectly viasys.stdinandsys.stdin.static StringCompanion toraw_inputbuilt-in function used when the interactive interpreter is directed to a file.static PyObjectstatic PyObjectstatic PyObjectstatic PyObjectstatic PyObjectstatic PyStringstatic PyObjectstatic voidstatic PyObjectstatic PyObjectstatic PyTypestatic intunichr(int i) static intstatic PyObjectvars()static PyObjectstatic PyObjectzip()static PyObject
-
Field Details
-
__doc__zip
-
-
Constructor Details
-
__builtin__
public __builtin__()
-
-
Method Details
-
fillWithBuiltins
-
abs
-
apply
-
apply
-
apply
-
callable
-
unichr
-
unichr
public static int unichr(int i) -
chr
public static char chr(int i) -
cmp
-
coerce
-
delattr
-
dir
-
dir
-
divmod
-
eval
-
eval
-
eval
-
execfile
-
execfile_flags
public static void execfile_flags(String name, PyObject globals, PyObject locals, CompilerFlags cflags) -
execfile
-
execfile
-
filter
-
filterBaseString
-
filterTuple
-
getattr
-
getattr
-
globals
-
hasattr
-
hash
-
hex
-
id
-
input
-
input
-
intern
-
isinstance
-
issubclass
-
iter
-
iter
-
len
-
locals
-
map
-
oct
-
ord
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-TypeErrorif not a string-like type
-
pow
-
pow
-
range
-
range
-
range
-
raw_input
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
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
Implementation ofraw_input()built-in function using the console directly.- Returns:
- line of text from console (encoded as bytes values compatible with PyString)
-
reduce
-
reduce
-
reload
-
reload
-
reload
-
repr
-
setattr
-
sum
-
reversed
-
sum
-
type
-
vars
-
vars
-
zip
-
zip
-
__import__
-
__import__
-
__import__
-
__import__
-
__import__
-