2014-05-03 18:27:38 -04:00
|
|
|
/*
|
|
|
|
* This file is part of the Micro Python project, http://micropython.org/
|
|
|
|
*
|
|
|
|
* The MIT License (MIT)
|
|
|
|
*
|
|
|
|
* Copyright (c) 2013, 2014 Damien P. George
|
|
|
|
*
|
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
* of this software and associated documentation files (the "Software"), to deal
|
|
|
|
* in the Software without restriction, including without limitation the rights
|
|
|
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
|
* copies of the Software, and to permit persons to whom the Software is
|
|
|
|
* furnished to do so, subject to the following conditions:
|
|
|
|
*
|
|
|
|
* The above copyright notice and this permission notice shall be included in
|
|
|
|
* all copies or substantial portions of the Software.
|
|
|
|
*
|
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
|
|
* THE SOFTWARE.
|
|
|
|
*/
|
|
|
|
|
2015-01-01 15:27:54 -05:00
|
|
|
#include "py/mpconfig.h"
|
|
|
|
|
2014-01-04 10:57:35 -05:00
|
|
|
// All the qstr definitions in this file are available as constants.
|
2014-03-08 10:24:39 -05:00
|
|
|
// That is, they are in ROM and you can reference them simply as MP_QSTR_xxxx.
|
2014-01-04 10:57:35 -05:00
|
|
|
|
2015-01-11 12:52:45 -05:00
|
|
|
// qstr configuration passed to makeqstrdata.py of the form QCFG(key, value)
|
2015-01-11 17:27:30 -05:00
|
|
|
QCFG(BYTES_IN_LEN, MICROPY_QSTR_BYTES_IN_LEN)
|
2015-07-20 07:03:13 -04:00
|
|
|
QCFG(BYTES_IN_HASH, MICROPY_QSTR_BYTES_IN_HASH)
|
2015-01-11 12:52:45 -05:00
|
|
|
|
|
|
|
Q()
|
2014-04-27 14:23:46 -04:00
|
|
|
Q(*)
|
2014-01-04 10:57:35 -05:00
|
|
|
Q(__build_class__)
|
|
|
|
Q(__class__)
|
|
|
|
Q(__doc__)
|
2014-02-03 17:46:17 -05:00
|
|
|
Q(__import__)
|
2014-01-04 10:57:35 -05:00
|
|
|
Q(__init__)
|
2014-05-18 13:37:18 -04:00
|
|
|
Q(__new__)
|
2014-01-04 10:57:35 -05:00
|
|
|
Q(__locals__)
|
|
|
|
Q(__main__)
|
|
|
|
Q(__module__)
|
|
|
|
Q(__name__)
|
2014-11-12 08:57:34 -05:00
|
|
|
Q(__hash__)
|
2014-01-04 10:57:35 -05:00
|
|
|
Q(__next__)
|
|
|
|
Q(__qualname__)
|
2014-04-11 16:25:35 -04:00
|
|
|
Q(__path__)
|
2014-01-04 10:57:35 -05:00
|
|
|
Q(__repl_print__)
|
2014-07-25 04:00:15 -04:00
|
|
|
#if MICROPY_PY___FILE__
|
|
|
|
Q(__file__)
|
|
|
|
#endif
|
2014-01-04 10:57:35 -05:00
|
|
|
|
2014-01-30 05:05:33 -05:00
|
|
|
Q(__bool__)
|
2014-04-13 03:39:25 -04:00
|
|
|
Q(__contains__)
|
2014-03-28 22:10:11 -04:00
|
|
|
Q(__enter__)
|
|
|
|
Q(__exit__)
|
2014-01-30 05:05:33 -05:00
|
|
|
Q(__len__)
|
2014-03-26 14:37:06 -04:00
|
|
|
Q(__iter__)
|
2014-01-24 19:17:36 -05:00
|
|
|
Q(__getitem__)
|
2014-02-08 14:01:47 -05:00
|
|
|
Q(__setitem__)
|
2014-04-13 16:55:59 -04:00
|
|
|
Q(__delitem__)
|
2014-01-24 19:17:36 -05:00
|
|
|
Q(__add__)
|
|
|
|
Q(__sub__)
|
2014-03-16 09:16:54 -04:00
|
|
|
Q(__repr__)
|
|
|
|
Q(__str__)
|
2015-02-14 12:43:54 -05:00
|
|
|
#if MICROPY_PY_DESCRIPTORS
|
|
|
|
Q(__get__)
|
|
|
|
Q(__set__)
|
2015-04-04 15:15:31 -04:00
|
|
|
Q(__delete__)
|
2015-02-14 12:43:54 -05:00
|
|
|
#endif
|
2014-03-31 17:57:56 -04:00
|
|
|
Q(__getattr__)
|
2014-04-05 09:49:03 -04:00
|
|
|
Q(__del__)
|
2014-04-25 14:15:16 -04:00
|
|
|
Q(__call__)
|
2014-06-07 17:01:46 -04:00
|
|
|
Q(__lt__)
|
2014-08-26 04:31:26 -04:00
|
|
|
Q(__gt__)
|
|
|
|
Q(__eq__)
|
|
|
|
Q(__le__)
|
|
|
|
Q(__ge__)
|
2015-01-20 19:19:42 -05:00
|
|
|
Q(__reversed__)
|
2015-01-29 18:42:49 -05:00
|
|
|
#if MICROPY_PY_ALL_SPECIAL_METHODS
|
2015-02-21 12:35:09 -05:00
|
|
|
Q(__mul__)
|
|
|
|
Q(__truediv__)
|
|
|
|
Q(__floordiv__)
|
2015-01-29 18:42:49 -05:00
|
|
|
Q(__iadd__)
|
2015-02-21 12:35:09 -05:00
|
|
|
Q(__isub__)
|
2015-03-29 19:29:59 -04:00
|
|
|
Q(__invert__)
|
|
|
|
Q(__neg__)
|
|
|
|
Q(__pos__)
|
2015-01-29 18:42:49 -05:00
|
|
|
#endif
|
2014-01-24 19:17:36 -05:00
|
|
|
|
2014-01-04 10:57:35 -05:00
|
|
|
Q(micropython)
|
2014-05-10 05:36:38 -04:00
|
|
|
Q(bytecode)
|
2014-08-15 11:45:41 -04:00
|
|
|
Q(const)
|
|
|
|
|
2014-09-06 18:06:36 -04:00
|
|
|
#if MICROPY_EMIT_NATIVE
|
2014-01-04 10:57:35 -05:00
|
|
|
Q(native)
|
|
|
|
Q(viper)
|
2014-08-15 11:45:41 -04:00
|
|
|
Q(uint)
|
2014-09-29 17:10:41 -04:00
|
|
|
Q(ptr)
|
|
|
|
Q(ptr8)
|
|
|
|
Q(ptr16)
|
2014-08-15 11:45:41 -04:00
|
|
|
#endif
|
2014-04-21 08:33:15 -04:00
|
|
|
|
|
|
|
#if MICROPY_EMIT_INLINE_THUMB
|
2014-01-04 10:57:35 -05:00
|
|
|
Q(asm_thumb)
|
2014-04-21 08:33:15 -04:00
|
|
|
Q(label)
|
|
|
|
Q(align)
|
|
|
|
Q(data)
|
|
|
|
#endif
|
2014-01-04 10:57:35 -05:00
|
|
|
|
2014-09-17 18:17:26 -04:00
|
|
|
Q(builtins)
|
|
|
|
|
2014-01-04 13:44:46 -05:00
|
|
|
Q(Ellipsis)
|
2014-01-04 10:57:35 -05:00
|
|
|
Q(StopIteration)
|
2015-05-04 12:45:53 -04:00
|
|
|
#if MICROPY_PY_BUILTINS_NOTIMPLEMENTED
|
|
|
|
Q(NotImplemented)
|
|
|
|
#endif
|
2014-01-04 10:57:35 -05:00
|
|
|
|
2014-02-15 11:10:44 -05:00
|
|
|
Q(BaseException)
|
2014-03-22 11:28:16 -04:00
|
|
|
Q(ArithmeticError)
|
2014-01-04 15:21:15 -05:00
|
|
|
Q(AssertionError)
|
2014-01-04 10:57:35 -05:00
|
|
|
Q(AttributeError)
|
2014-03-22 11:28:16 -04:00
|
|
|
Q(BufferError)
|
|
|
|
Q(EOFError)
|
|
|
|
Q(Exception)
|
|
|
|
Q(FileExistsError)
|
|
|
|
Q(FileNotFoundError)
|
|
|
|
Q(FloatingPointError)
|
|
|
|
Q(GeneratorExit)
|
2014-02-03 20:33:55 -05:00
|
|
|
Q(ImportError)
|
2014-01-15 16:23:31 -05:00
|
|
|
Q(IndentationError)
|
2014-01-04 10:57:35 -05:00
|
|
|
Q(IndexError)
|
2014-10-25 13:19:55 -04:00
|
|
|
Q(KeyboardInterrupt)
|
2014-01-04 10:57:35 -05:00
|
|
|
Q(KeyError)
|
2014-03-22 11:28:16 -04:00
|
|
|
Q(LookupError)
|
|
|
|
Q(MemoryError)
|
2014-01-04 10:57:35 -05:00
|
|
|
Q(NameError)
|
2014-02-09 06:17:36 -05:00
|
|
|
Q(NotImplementedError)
|
2014-01-15 16:23:31 -05:00
|
|
|
Q(OSError)
|
2015-06-29 16:45:39 -04:00
|
|
|
#if MICROPY_PY_BUILTINS_TIMEOUTERROR
|
|
|
|
Q(TimeoutError)
|
|
|
|
#endif
|
2014-03-22 11:28:16 -04:00
|
|
|
Q(OverflowError)
|
|
|
|
Q(RuntimeError)
|
2014-01-04 10:57:35 -05:00
|
|
|
Q(SyntaxError)
|
2014-05-24 18:32:19 -04:00
|
|
|
Q(SystemExit)
|
2014-01-04 15:21:15 -05:00
|
|
|
Q(TypeError)
|
2014-03-22 11:28:16 -04:00
|
|
|
Q(UnboundLocalError)
|
2014-01-04 10:57:35 -05:00
|
|
|
Q(ValueError)
|
2015-04-20 09:29:31 -04:00
|
|
|
#if MICROPY_EMIT_NATIVE
|
|
|
|
Q(ViperTypeError)
|
|
|
|
#endif
|
2014-03-20 18:40:38 -04:00
|
|
|
Q(ZeroDivisionError)
|
2015-02-23 16:18:36 -05:00
|
|
|
#if MICROPY_PY_BUILTINS_STR_UNICODE
|
|
|
|
Q(UnicodeError)
|
|
|
|
#endif
|
2014-01-04 10:57:35 -05:00
|
|
|
|
2014-03-22 17:31:28 -04:00
|
|
|
Q(None)
|
|
|
|
Q(False)
|
|
|
|
Q(True)
|
|
|
|
Q(object)
|
2014-03-22 11:28:16 -04:00
|
|
|
|
2014-02-15 06:34:50 -05:00
|
|
|
Q(NoneType)
|
|
|
|
|
2015-03-17 19:25:04 -04:00
|
|
|
#if MICROPY_PY_COLLECTIONS_ORDEREDDICT
|
|
|
|
Q(OrderedDict)
|
|
|
|
#endif
|
|
|
|
|
2014-01-04 10:57:35 -05:00
|
|
|
Q(abs)
|
|
|
|
Q(all)
|
|
|
|
Q(any)
|
2014-03-24 19:29:09 -04:00
|
|
|
Q(args)
|
2014-10-23 08:34:35 -04:00
|
|
|
#if MICROPY_PY_ARRAY
|
2014-01-18 12:24:47 -05:00
|
|
|
Q(array)
|
2014-10-23 08:34:35 -04:00
|
|
|
#endif
|
2014-04-15 17:03:55 -04:00
|
|
|
Q(bin)
|
|
|
|
Q({:#b})
|
2014-01-04 10:57:35 -05:00
|
|
|
Q(bool)
|
2014-10-23 08:34:35 -04:00
|
|
|
#if MICROPY_PY_BUILTINS_BYTEARRAY
|
2014-01-18 12:24:47 -05:00
|
|
|
Q(bytearray)
|
2014-10-23 08:34:35 -04:00
|
|
|
#endif
|
|
|
|
#if MICROPY_PY_BUILTINS_MEMORYVIEW
|
|
|
|
Q(memoryview)
|
|
|
|
#endif
|
2014-01-20 13:32:50 -05:00
|
|
|
Q(bytes)
|
2014-01-04 10:57:35 -05:00
|
|
|
Q(callable)
|
|
|
|
Q(chr)
|
2014-02-06 15:31:44 -05:00
|
|
|
Q(classmethod)
|
2014-04-13 03:17:04 -04:00
|
|
|
Q(_collections)
|
2014-08-12 14:57:52 -04:00
|
|
|
#if MICROPY_PY_BUILTINS_COMPLEX
|
2014-01-04 10:57:35 -05:00
|
|
|
Q(complex)
|
2014-08-12 14:57:52 -04:00
|
|
|
Q(real)
|
|
|
|
Q(imag)
|
|
|
|
#endif
|
2014-01-04 10:57:35 -05:00
|
|
|
Q(dict)
|
2014-02-02 17:07:44 -05:00
|
|
|
Q(dir)
|
2014-01-04 10:57:35 -05:00
|
|
|
Q(divmod)
|
2014-01-14 18:55:01 -05:00
|
|
|
Q(enumerate)
|
2014-01-15 17:14:03 -05:00
|
|
|
Q(eval)
|
2014-02-03 17:44:10 -05:00
|
|
|
Q(exec)
|
2014-12-19 08:36:17 -05:00
|
|
|
#if MICROPY_PY_BUILTINS_EXECFILE
|
|
|
|
Q(execfile)
|
|
|
|
#endif
|
2014-01-14 20:37:08 -05:00
|
|
|
Q(filter)
|
2014-08-12 15:16:03 -04:00
|
|
|
#if MICROPY_PY_BUILTINS_FLOAT
|
2014-01-04 10:57:35 -05:00
|
|
|
Q(float)
|
2014-08-12 15:16:03 -04:00
|
|
|
#endif
|
2014-04-08 17:40:58 -04:00
|
|
|
Q(from_bytes)
|
2014-03-26 17:35:13 -04:00
|
|
|
Q(getattr)
|
2015-02-14 11:36:59 -05:00
|
|
|
Q(setattr)
|
2014-04-05 18:00:46 -04:00
|
|
|
Q(globals)
|
2014-05-11 12:05:42 -04:00
|
|
|
Q(hasattr)
|
2014-01-04 10:57:35 -05:00
|
|
|
Q(hash)
|
2014-04-15 07:42:52 -04:00
|
|
|
Q(hex)
|
2014-04-15 07:50:21 -04:00
|
|
|
Q(%#x)
|
2014-02-01 22:00:41 -05:00
|
|
|
Q(id)
|
2014-01-04 10:57:35 -05:00
|
|
|
Q(int)
|
2014-01-09 16:43:51 -05:00
|
|
|
Q(isinstance)
|
|
|
|
Q(issubclass)
|
2014-01-04 10:57:35 -05:00
|
|
|
Q(iter)
|
|
|
|
Q(len)
|
|
|
|
Q(list)
|
2014-04-05 18:00:46 -04:00
|
|
|
Q(locals)
|
2014-01-14 20:10:09 -05:00
|
|
|
Q(map)
|
2014-01-04 10:57:35 -05:00
|
|
|
Q(max)
|
|
|
|
Q(min)
|
2014-02-27 15:22:04 -05:00
|
|
|
Q(namedtuple)
|
2014-01-04 10:57:35 -05:00
|
|
|
Q(next)
|
2014-04-15 17:03:55 -04:00
|
|
|
Q(oct)
|
|
|
|
Q(%#o)
|
2014-04-05 18:02:23 -04:00
|
|
|
Q(open)
|
2014-01-04 10:57:35 -05:00
|
|
|
Q(ord)
|
2014-02-04 17:47:06 -05:00
|
|
|
Q(path)
|
2014-01-04 10:57:35 -05:00
|
|
|
Q(pow)
|
|
|
|
Q(print)
|
|
|
|
Q(range)
|
2014-04-26 14:15:56 -04:00
|
|
|
Q(read)
|
2014-01-15 16:40:48 -05:00
|
|
|
Q(repr)
|
2014-08-12 13:33:40 -04:00
|
|
|
Q(reversed)
|
2014-10-31 07:28:50 -04:00
|
|
|
Q(round)
|
2014-01-13 00:12:50 -05:00
|
|
|
Q(sorted)
|
2014-02-06 15:31:44 -05:00
|
|
|
Q(staticmethod)
|
2014-01-04 10:57:35 -05:00
|
|
|
Q(sum)
|
2014-02-04 19:51:47 -05:00
|
|
|
Q(super)
|
2014-01-13 12:20:46 -05:00
|
|
|
Q(str)
|
2014-02-04 00:55:10 -05:00
|
|
|
Q(sys)
|
2014-04-08 17:40:58 -04:00
|
|
|
Q(to_bytes)
|
2014-01-04 15:21:15 -05:00
|
|
|
Q(tuple)
|
2014-01-04 10:57:35 -05:00
|
|
|
Q(type)
|
2014-03-24 19:29:09 -04:00
|
|
|
Q(value)
|
2014-04-26 14:15:56 -04:00
|
|
|
Q(write)
|
2014-01-12 21:31:00 -05:00
|
|
|
Q(zip)
|
2014-01-04 10:57:35 -05:00
|
|
|
|
2014-10-25 16:59:14 -04:00
|
|
|
#if MICROPY_PY_BUILTINS_COMPILE
|
|
|
|
Q(compile)
|
|
|
|
Q(code)
|
|
|
|
Q(single)
|
|
|
|
#endif
|
|
|
|
|
2014-04-02 05:34:44 -04:00
|
|
|
Q(sep)
|
|
|
|
Q(end)
|
|
|
|
|
2015-03-06 14:48:14 -05:00
|
|
|
#if MICROPY_PY_BUILTINS_RANGE_ATTRS
|
|
|
|
Q(step)
|
|
|
|
Q(stop)
|
|
|
|
#endif
|
|
|
|
|
2014-03-26 16:15:40 -04:00
|
|
|
Q(clear)
|
|
|
|
Q(copy)
|
|
|
|
Q(fromkeys)
|
|
|
|
Q(get)
|
|
|
|
Q(items)
|
|
|
|
Q(keys)
|
|
|
|
Q(pop)
|
|
|
|
Q(popitem)
|
|
|
|
Q(setdefault)
|
|
|
|
Q(update)
|
|
|
|
Q(values)
|
2014-01-04 10:57:35 -05:00
|
|
|
Q(append)
|
2014-03-26 16:15:40 -04:00
|
|
|
Q(close)
|
|
|
|
Q(send)
|
|
|
|
Q(throw)
|
|
|
|
Q(count)
|
|
|
|
Q(extend)
|
|
|
|
Q(index)
|
|
|
|
Q(remove)
|
|
|
|
Q(insert)
|
2014-01-04 10:57:35 -05:00
|
|
|
Q(pop)
|
|
|
|
Q(sort)
|
|
|
|
Q(join)
|
2014-01-08 17:23:45 -05:00
|
|
|
Q(strip)
|
2014-04-25 23:20:08 -04:00
|
|
|
Q(lstrip)
|
|
|
|
Q(rstrip)
|
2014-01-04 10:57:35 -05:00
|
|
|
Q(format)
|
2014-02-08 14:01:47 -05:00
|
|
|
Q(key)
|
|
|
|
Q(reverse)
|
2014-03-26 16:15:40 -04:00
|
|
|
Q(add)
|
|
|
|
Q(clear)
|
|
|
|
Q(copy)
|
|
|
|
Q(pop)
|
|
|
|
Q(remove)
|
|
|
|
Q(find)
|
|
|
|
Q(rfind)
|
2014-04-08 14:42:19 -04:00
|
|
|
Q(rindex)
|
2014-03-26 16:15:40 -04:00
|
|
|
Q(split)
|
2015-04-03 17:09:23 -04:00
|
|
|
#if MICROPY_PY_BUILTINS_STR_SPLITLINES
|
|
|
|
Q(splitlines)
|
|
|
|
Q(keepends)
|
|
|
|
Q(\n)
|
|
|
|
#endif
|
2014-05-13 01:07:08 -04:00
|
|
|
Q(rsplit)
|
2014-03-26 16:15:40 -04:00
|
|
|
Q(startswith)
|
2014-05-24 15:46:51 -04:00
|
|
|
Q(endswith)
|
2014-03-26 16:15:40 -04:00
|
|
|
Q(replace)
|
|
|
|
Q(partition)
|
|
|
|
Q(rpartition)
|
2014-05-10 12:47:41 -04:00
|
|
|
Q(lower)
|
|
|
|
Q(upper)
|
2014-05-31 02:30:03 -04:00
|
|
|
Q(isspace)
|
|
|
|
Q(isalpha)
|
|
|
|
Q(isdigit)
|
|
|
|
Q(isupper)
|
|
|
|
Q(islower)
|
2014-05-06 12:38:54 -04:00
|
|
|
Q(iterable)
|
|
|
|
Q(start)
|
2014-01-23 17:22:00 -05:00
|
|
|
|
2014-02-15 06:34:50 -05:00
|
|
|
Q(bound_method)
|
|
|
|
Q(closure)
|
|
|
|
Q(dict_view)
|
|
|
|
Q(function)
|
|
|
|
Q(generator)
|
|
|
|
Q(iterator)
|
|
|
|
Q(module)
|
|
|
|
Q(slice)
|
|
|
|
|
2014-08-12 15:16:03 -04:00
|
|
|
#if MICROPY_PY_BUILTINS_SET
|
|
|
|
Q(discard)
|
|
|
|
Q(difference)
|
|
|
|
Q(difference_update)
|
|
|
|
Q(intersection)
|
|
|
|
Q(intersection_update)
|
|
|
|
Q(isdisjoint)
|
|
|
|
Q(issubset)
|
|
|
|
Q(issuperset)
|
|
|
|
Q(set)
|
|
|
|
Q(symmetric_difference)
|
|
|
|
Q(symmetric_difference_update)
|
|
|
|
Q(union)
|
|
|
|
Q(update)
|
|
|
|
#endif
|
|
|
|
|
2014-06-01 08:32:54 -04:00
|
|
|
#if MICROPY_PY_BUILTINS_FROZENSET
|
2014-05-10 09:02:17 -04:00
|
|
|
Q(frozenset)
|
|
|
|
#endif
|
|
|
|
|
2014-05-24 18:03:12 -04:00
|
|
|
#if MICROPY_PY_MATH || MICROPY_PY_CMATH
|
2014-03-08 10:24:39 -05:00
|
|
|
Q(math)
|
2014-03-20 12:39:22 -04:00
|
|
|
Q(e)
|
2014-03-08 10:24:39 -05:00
|
|
|
Q(pi)
|
|
|
|
Q(sqrt)
|
|
|
|
Q(pow)
|
|
|
|
Q(exp)
|
2014-03-12 17:31:41 -04:00
|
|
|
Q(expm1)
|
2014-03-08 10:24:39 -05:00
|
|
|
Q(log)
|
|
|
|
Q(log2)
|
|
|
|
Q(log10)
|
|
|
|
Q(cosh)
|
|
|
|
Q(sinh)
|
|
|
|
Q(tanh)
|
|
|
|
Q(acosh)
|
|
|
|
Q(asinh)
|
|
|
|
Q(atanh)
|
|
|
|
Q(cos)
|
|
|
|
Q(sin)
|
|
|
|
Q(tan)
|
|
|
|
Q(acos)
|
|
|
|
Q(asin)
|
|
|
|
Q(atan)
|
|
|
|
Q(atan2)
|
2014-03-20 17:26:51 -04:00
|
|
|
Q(ceil)
|
|
|
|
Q(copysign)
|
|
|
|
Q(fabs)
|
|
|
|
Q(fmod)
|
2014-03-22 10:39:33 -04:00
|
|
|
Q(floor)
|
2014-03-20 17:26:51 -04:00
|
|
|
Q(isfinite)
|
|
|
|
Q(isinf)
|
|
|
|
Q(isnan)
|
|
|
|
Q(trunc)
|
2014-03-22 10:39:33 -04:00
|
|
|
Q(modf)
|
|
|
|
Q(frexp)
|
|
|
|
Q(ldexp)
|
|
|
|
Q(degrees)
|
|
|
|
Q(radians)
|
2015-02-22 09:48:18 -05:00
|
|
|
#if MICROPY_PY_MATH_SPECIAL_FUNCTIONS
|
2014-03-22 10:39:33 -04:00
|
|
|
Q(erf)
|
|
|
|
Q(erfc)
|
|
|
|
Q(gamma)
|
|
|
|
Q(lgamma)
|
2014-04-17 12:11:03 -04:00
|
|
|
#endif
|
2015-02-22 09:48:18 -05:00
|
|
|
#endif
|
2014-04-17 12:11:03 -04:00
|
|
|
|
2014-05-24 18:03:12 -04:00
|
|
|
#if MICROPY_PY_CMATH
|
2014-04-17 12:11:03 -04:00
|
|
|
Q(cmath)
|
|
|
|
Q(phase)
|
|
|
|
Q(polar)
|
|
|
|
Q(rect)
|
|
|
|
#endif
|
2014-03-08 10:24:39 -05:00
|
|
|
|
2015-01-09 15:12:54 -05:00
|
|
|
#if MICROPY_PY_MICROPYTHON_MEM_INFO
|
2014-08-12 15:16:03 -04:00
|
|
|
#if MICROPY_MEM_STATS
|
2014-03-08 10:24:39 -05:00
|
|
|
Q(mem_total)
|
|
|
|
Q(mem_current)
|
|
|
|
Q(mem_peak)
|
2015-01-09 15:12:54 -05:00
|
|
|
#endif
|
2014-12-01 13:41:56 -05:00
|
|
|
Q(mem_info)
|
|
|
|
Q(qstr_info)
|
2014-08-12 15:16:03 -04:00
|
|
|
#endif
|
2014-03-08 10:24:39 -05:00
|
|
|
|
2014-07-02 02:46:53 -04:00
|
|
|
#if MICROPY_ENABLE_EMERGENCY_EXCEPTION_BUF && (MICROPY_EMERGENCY_EXCEPTION_BUF_SIZE == 0)
|
|
|
|
Q(alloc_emergency_exception_buf)
|
|
|
|
#endif
|
2015-02-15 14:34:31 -05:00
|
|
|
Q(maximum recursion depth exceeded)
|
2014-07-02 02:46:53 -04:00
|
|
|
|
2014-01-23 17:22:00 -05:00
|
|
|
Q(<module>)
|
|
|
|
Q(<lambda>)
|
|
|
|
Q(<listcomp>)
|
|
|
|
Q(<dictcomp>)
|
|
|
|
Q(<setcomp>)
|
|
|
|
Q(<genexpr>)
|
2014-01-25 08:51:19 -05:00
|
|
|
Q(<string>)
|
2014-01-23 17:22:00 -05:00
|
|
|
Q(<stdin>)
|
2014-04-12 22:28:46 -04:00
|
|
|
|
|
|
|
#if MICROPY_CPYTHON_COMPAT
|
|
|
|
Q(encode)
|
|
|
|
Q(decode)
|
|
|
|
Q(utf-8)
|
|
|
|
#endif
|
2014-04-12 23:55:24 -04:00
|
|
|
|
2014-05-24 18:03:12 -04:00
|
|
|
#if MICROPY_PY_SYS
|
2014-04-12 23:55:24 -04:00
|
|
|
Q(argv)
|
2014-04-13 02:53:52 -04:00
|
|
|
Q(byteorder)
|
|
|
|
Q(big)
|
2014-05-10 09:50:45 -04:00
|
|
|
Q(exit)
|
2014-04-13 02:53:52 -04:00
|
|
|
Q(little)
|
2014-06-07 16:40:04 -04:00
|
|
|
#ifdef MICROPY_PY_SYS_PLATFORM
|
|
|
|
Q(platform)
|
|
|
|
#endif
|
2014-04-12 23:55:24 -04:00
|
|
|
Q(stdin)
|
|
|
|
Q(stdout)
|
|
|
|
Q(stderr)
|
2015-05-13 18:49:21 -04:00
|
|
|
#if MICROPY_PY_SYS_STDIO_BUFFER
|
|
|
|
Q(buffer)
|
|
|
|
#endif
|
2014-04-13 18:46:45 -04:00
|
|
|
Q(version)
|
2014-04-13 02:46:58 -04:00
|
|
|
Q(version_info)
|
2015-04-21 10:45:04 -04:00
|
|
|
#if MICROPY_PY_ATTRTUPLE
|
|
|
|
Q(name)
|
|
|
|
#endif
|
|
|
|
Q(implementation)
|
2014-07-03 09:50:11 -04:00
|
|
|
#if MICROPY_PY_SYS_MAXSIZE
|
|
|
|
Q(maxsize)
|
|
|
|
#endif
|
2015-04-24 20:17:41 -04:00
|
|
|
#if MICROPY_PY_SYS_EXC_INFO
|
|
|
|
Q(exc_info)
|
|
|
|
#endif
|
2014-12-06 07:29:09 -05:00
|
|
|
Q(print_exception)
|
2014-04-12 23:55:24 -04:00
|
|
|
#endif
|
2014-04-13 13:59:45 -04:00
|
|
|
|
2014-05-24 18:03:12 -04:00
|
|
|
#if MICROPY_PY_STRUCT
|
2015-05-04 09:35:40 -04:00
|
|
|
Q(ustruct)
|
2014-04-18 20:13:15 -04:00
|
|
|
Q(pack)
|
|
|
|
Q(unpack)
|
2015-05-04 08:50:05 -04:00
|
|
|
Q(calcsize)
|
2014-04-18 20:13:15 -04:00
|
|
|
#endif
|
|
|
|
|
2014-06-27 20:03:47 -04:00
|
|
|
#if MICROPY_PY_UCTYPES
|
|
|
|
Q(uctypes)
|
2015-05-04 09:35:40 -04:00
|
|
|
Q(struct)
|
2014-06-27 20:03:47 -04:00
|
|
|
Q(sizeof)
|
|
|
|
Q(addressof)
|
|
|
|
Q(bytes_at)
|
|
|
|
Q(bytearray_at)
|
|
|
|
|
|
|
|
Q(NATIVE)
|
|
|
|
Q(LITTLE_ENDIAN)
|
|
|
|
Q(BIG_ENDIAN)
|
|
|
|
|
|
|
|
Q(VOID)
|
|
|
|
|
|
|
|
Q(UINT8)
|
|
|
|
Q(INT8)
|
|
|
|
Q(UINT16)
|
|
|
|
Q(INT16)
|
|
|
|
Q(UINT32)
|
|
|
|
Q(INT32)
|
|
|
|
Q(UINT64)
|
|
|
|
Q(INT64)
|
|
|
|
|
|
|
|
Q(BFUINT8)
|
|
|
|
Q(BFINT8)
|
|
|
|
Q(BFUINT16)
|
|
|
|
Q(BFINT16)
|
|
|
|
Q(BFUINT32)
|
|
|
|
Q(BFINT32)
|
|
|
|
|
|
|
|
Q(FLOAT32)
|
|
|
|
Q(FLOAT64)
|
|
|
|
|
|
|
|
Q(ARRAY)
|
|
|
|
Q(PTR)
|
|
|
|
//Q(BITFIELD)
|
2014-07-10 17:06:36 -04:00
|
|
|
|
|
|
|
Q(BF_POS)
|
|
|
|
Q(BF_LEN)
|
2014-06-27 20:03:47 -04:00
|
|
|
#endif
|
|
|
|
|
2014-05-24 18:03:12 -04:00
|
|
|
#if MICROPY_PY_IO
|
2014-06-11 18:22:25 -04:00
|
|
|
Q(_io)
|
2014-04-26 14:15:56 -04:00
|
|
|
Q(readall)
|
2014-10-18 15:44:07 -04:00
|
|
|
Q(readinto)
|
2014-04-26 14:15:56 -04:00
|
|
|
Q(readline)
|
2014-05-03 17:01:32 -04:00
|
|
|
Q(readlines)
|
2014-11-16 17:16:14 -05:00
|
|
|
Q(seek)
|
2014-05-19 13:59:13 -04:00
|
|
|
Q(FileIO)
|
|
|
|
Q(TextIOWrapper)
|
2014-04-26 13:26:14 -04:00
|
|
|
Q(StringIO)
|
|
|
|
Q(BytesIO)
|
|
|
|
Q(getvalue)
|
2014-07-13 16:07:42 -04:00
|
|
|
Q(file)
|
2014-10-04 02:51:33 -04:00
|
|
|
Q(mode)
|
|
|
|
Q(r)
|
|
|
|
Q(encoding)
|
2014-04-26 13:26:14 -04:00
|
|
|
#endif
|
|
|
|
|
2014-05-24 18:03:12 -04:00
|
|
|
#if MICROPY_PY_GC
|
2014-05-05 19:16:43 -04:00
|
|
|
Q(gc)
|
|
|
|
Q(collect)
|
2014-05-08 18:04:49 -04:00
|
|
|
Q(disable)
|
|
|
|
Q(enable)
|
2014-10-31 17:30:46 -04:00
|
|
|
Q(isenabled)
|
2014-06-24 14:23:40 -04:00
|
|
|
Q(mem_free)
|
|
|
|
Q(mem_alloc)
|
2014-05-05 19:16:43 -04:00
|
|
|
#endif
|
|
|
|
|
2014-06-01 08:32:54 -04:00
|
|
|
#if MICROPY_PY_BUILTINS_PROPERTY
|
2014-04-13 13:59:45 -04:00
|
|
|
Q(property)
|
|
|
|
Q(getter)
|
|
|
|
Q(setter)
|
|
|
|
Q(deleter)
|
|
|
|
#endif
|
2014-08-08 15:51:40 -04:00
|
|
|
|
2014-10-12 11:16:34 -04:00
|
|
|
#if MICROPY_PY_UZLIB
|
|
|
|
Q(uzlib)
|
|
|
|
Q(decompress)
|
|
|
|
#endif
|
|
|
|
|
2014-09-17 17:56:34 -04:00
|
|
|
#if MICROPY_PY_UJSON
|
|
|
|
Q(ujson)
|
|
|
|
Q(dumps)
|
2014-09-21 06:40:01 -04:00
|
|
|
Q(loads)
|
2014-09-17 17:56:34 -04:00
|
|
|
#endif
|
2014-09-12 11:48:07 -04:00
|
|
|
|
|
|
|
#if MICROPY_PY_URE
|
|
|
|
Q(ure)
|
|
|
|
Q(compile)
|
|
|
|
Q(match)
|
|
|
|
Q(search)
|
|
|
|
Q(group)
|
|
|
|
Q(DEBUG)
|
|
|
|
#endif
|
2014-10-22 13:37:18 -04:00
|
|
|
|
|
|
|
#if MICROPY_PY_UHEAPQ
|
|
|
|
Q(uheapq)
|
|
|
|
Q(heappush)
|
|
|
|
Q(heappop)
|
|
|
|
Q(heapify)
|
|
|
|
#endif
|
2014-11-21 18:19:13 -05:00
|
|
|
|
|
|
|
#if MICROPY_PY_UHASHLIB
|
|
|
|
Q(uhashlib)
|
|
|
|
Q(update)
|
|
|
|
Q(digest)
|
|
|
|
Q(sha256)
|
|
|
|
#endif
|
2014-11-28 23:19:30 -05:00
|
|
|
|
|
|
|
#if MICROPY_PY_UBINASCII
|
|
|
|
Q(ubinascii)
|
|
|
|
Q(hexlify)
|
2015-05-18 17:41:25 -04:00
|
|
|
Q(unhexlify)
|
2015-07-02 01:15:06 -04:00
|
|
|
Q(a2b_base64)
|
|
|
|
Q(b2a_base64)
|
2014-11-28 23:19:30 -05:00
|
|
|
#endif
|
2015-05-03 13:25:40 -04:00
|
|
|
|
|
|
|
#if MICROPY_PY_MACHINE
|
|
|
|
Q(machine)
|
|
|
|
Q(mem)
|
|
|
|
Q(mem8)
|
|
|
|
Q(mem16)
|
|
|
|
Q(mem32)
|
|
|
|
#endif
|