Modules (rlib)
There are many general useful modules in RPython’s standard library (also called
rlib). For example, rmd5
and rsha
are libraries for hashing. rsre
is a
regular expression library. In this section, we will use some examples to show
commonly used libraries.
Here is a full list of rlib.
buffer
cache
clibffi
compilerinfo
constant
copyright
debug
entrypoint
exports
jit_hooks
jit_libffi
jit
libffi
listsort: stable sorting algorithm (i.e., Timsort)
longlong2float
mutbuffer
nonconst
objectmodel
parsing
rarithmetic: classes and operations to express integer arithmetic
rawrefcount
rawstorage
rbigint: functions handle big integer
rbisect: a basic bisection algorithm
rcomplex
rdtoa
rdynload
rerased
rfile
rfloat
rgc
rgil
rjitlog
rlocale
rmarshal
rrmd5: calculate MD5 digest
rmmap
ropenssl
rope
rpath: minimal (and limited) RPython version of some functions contained in os.path
rpoll
rposix_environ
rposix
rposix_scandir
rposix_stat
rrandom: pseudo-random number generators
rrawarray
rsha: calculate SHA digest
rshrinklist
rsignal
rsiphash
rsocket
rsre: regular expression matching operations same as the Python
re
modulerstacklet
rstackovf
rstack
rstrategies
rStringIO
rstring
rstruct
rtermios
rthread
rtime: time-related functions
rtimer: basic functions of timer
runicode
rurandom: random number generator depends on OS implementation
rvmprof
rweaklist
rweakref
rwin32file
rwin32
rwinreg
rzipfile
rzlib
signature
special_value
streamio
types
unicodedata
unroll