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 PyObject
static PyObject
static PyObject
static PyObject
apply
(PyObject o, PyObject args, PyDictionary kws) static boolean
static char
chr
(int i) static int
static PyTuple
static void
static PyObject
dir()
static PyObject
static PyObject
static PyObject
static PyObject
static PyObject
static void
static void
static void
static void
execfile_flags
(String name, PyObject globals, PyObject locals, CompilerFlags cflags) static void
fillWithBuiltins
(PyObject dict) static PyObject
static PyObject
filterBaseString
(PyObject func, PyBaseString seq, PyType stringType) static PyObject
filterTuple
(PyObject func, PyTuple seq) static PyObject
static PyObject
static PyObject
globals()
static boolean
static PyInteger
static PyString
static long
static PyObject
input()
static PyObject
static PyString
static boolean
isinstance
(PyObject obj, PyObject cls) static boolean
issubclass
(PyObject derived, PyObject cls) static PyObject
static PyObject
static int
static PyObject
locals()
static PyObject
static PyString
static final int
Built-in Python function ord() applicable to the string-like typesstr
,bytearray
,unicode
.static PyObject
static PyObject
static PyObject
static PyObject
static PyObject
static String
Implementation ofraw_input()
built-in function using the console directly.static String
Implementation ofraw_input(prompt)
built-in function using the console indirectly viasys.stdin
andsys.stdin
.static String
Companion toraw_input
built-in function used when the interactive interpreter is directed to a file.static PyObject
static PyObject
static PyObject
static PyObject
static PyObject
static PyString
static PyObject
static void
static PyObject
static PyObject
static PyType
static int
unichr
(int i) static int
static PyObject
vars()
static PyObject
static PyObject
zip()
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
-TypeError
if not a string-like type
-
pow
-
pow
-
range
-
range
-
range
-
raw_input
Companion toraw_input
built-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.stdin
andsys.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__
-