Lichen

Annotated lib/native/__init__.py

920:b4b4179c39f2
2021-06-22 Paul Boddie Renamed the int class to integer and introduced an int function. int-as-function
paul@6 1
#!/usr/bin/env python
paul@6 2
paul@6 3
"""
paul@336 4
Native library functions.
paul@336 5
paul@531 6
Copyright (C) 2011, 2015, 2016, 2017 Paul Boddie <paul@boddie.org.uk>
paul@6 7
paul@6 8
This program is free software; you can redistribute it and/or modify it under
paul@6 9
the terms of the GNU General Public License as published by the Free Software
paul@6 10
Foundation; either version 3 of the License, or (at your option) any later
paul@6 11
version.
paul@6 12
paul@6 13
This program is distributed in the hope that it will be useful, but WITHOUT
paul@6 14
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
paul@6 15
FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
paul@6 16
details.
paul@6 17
paul@6 18
You should have received a copy of the GNU General Public License along with
paul@6 19
this program.  If not, see <http://www.gnu.org/licenses/>.
paul@6 20
"""
paul@6 21
paul@354 22
from native.buffer import buffer_str
paul@280 23
paul@354 24
from native.identity import is_, is_not
paul@280 25
paul@758 26
from native.int import int_add, int_div, int_mod, int_mul, int_neg, int_pow, \
paul@762 27
                       int_sub, int_and, int_not, int_or, int_xor, \
paul@798 28
                       int_lshift, int_rshift, \
paul@762 29
                       int_eq, int_ge, int_gt, int_le, int_lt, int_ne, \
paul@762 30
                       int_str, is_int
paul@182 31
paul@354 32
from native.introspection import object_getattr, isinstance, issubclass
paul@6 33
paul@386 34
from native.iconv import iconv, iconv_close, iconv_open, iconv_reset
paul@380 35
paul@436 36
from native.io import fclose, fflush, fopen, fdopen, close, read, write, fread, fwrite
paul@280 37
paul@354 38
from native.limits import get_maxint, get_minint
paul@280 39
paul@354 40
from native.list import list_init, list_setsize, list_append, list_concat, \
paul@354 41
                        list_len, list_nonempty, list_element, list_setelement
paul@206 42
paul@375 43
from native.locale import getlocale, setlocale
paul@375 44
paul@354 45
from native.program import get_using
paul@280 46
paul@583 47
from native.str import str_add, str_chr, str_eq, str_gt, str_lt, \
paul@583 48
                       str_ord, str_substr
paul@173 49
paul@354 50
from native.system import exit, get_argv, get_path
paul@336 51
paul@773 52
from native.tuple import tuple_init
paul@773 53
paul@607 54
from native.unicode import unicode_len, unicode_ord, unicode_substr, unicode_unichr
paul@403 55
paul@6 56
# vim: tabstop=4 expandtab shiftwidth=4