2014-05-03 22:27:38 +00: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 20:27:54 +00:00
|
|
|
#include "py/mpconfig.h"
|
|
|
|
|
2014-01-04 15:57:35 +00:00
|
|
|
// All the qstr definitions in this file are available as constants.
|
2014-03-08 15:24:39 +00:00
|
|
|
// That is, they are in ROM and you can reference them simply as MP_QSTR_xxxx.
|
2014-01-04 15:57:35 +00:00
|
|
|
|
2015-01-11 17:52:45 +00:00
|
|
|
// qstr configuration passed to makeqstrdata.py of the form QCFG(key, value)
|
2015-01-11 22:27:30 +00:00
|
|
|
QCFG(BYTES_IN_LEN, MICROPY_QSTR_BYTES_IN_LEN)
|
2015-01-11 17:52:45 +00:00
|
|
|
|
|
|
|
Q()
|
2014-04-27 18:23:46 +00:00
|
|
|
Q(*)
|
2014-01-04 15:57:35 +00:00
|
|
|
Q(__build_class__)
|
|
|
|
Q(__class__)
|
|
|
|
Q(__doc__)
|
2014-02-03 22:46:17 +00:00
|
|
|
Q(__import__)
|
2014-01-04 15:57:35 +00:00
|
|
|
Q(__init__)
|
2014-05-18 17:37:18 +00:00
|
|
|
Q(__new__)
|
2014-01-04 15:57:35 +00:00
|
|
|
Q(__locals__)
|
|
|
|
Q(__main__)
|
|
|
|
Q(__module__)
|
|
|
|
Q(__name__)
|
2014-11-12 13:57:34 +00:00
|
|
|
Q(__hash__)
|
2014-01-04 15:57:35 +00:00
|
|
|
Q(__next__)
|
|
|
|
Q(__qualname__)
|
2014-04-11 20:25:35 +00:00
|
|
|
Q(__path__)
|
2014-01-04 15:57:35 +00:00
|
|
|
Q(__repl_print__)
|
2014-07-25 08:00:15 +00:00
|
|
|
#if MICROPY_PY___FILE__
|
|
|
|
Q(__file__)
|
|
|
|
#endif
|
2014-01-04 15:57:35 +00:00
|
|
|
|
2014-01-30 10:05:33 +00:00
|
|
|
Q(__bool__)
|
2014-04-13 07:39:25 +00:00
|
|
|
Q(__contains__)
|
2014-03-29 02:10:11 +00:00
|
|
|
Q(__enter__)
|
|
|
|
Q(__exit__)
|
2014-01-30 10:05:33 +00:00
|
|
|
Q(__len__)
|
2014-03-26 18:37:06 +00:00
|
|
|
Q(__iter__)
|
2014-01-25 00:17:36 +00:00
|
|
|
Q(__getitem__)
|
2014-02-08 19:01:47 +00:00
|
|
|
Q(__setitem__)
|
2014-04-13 20:55:59 +00:00
|
|
|
Q(__delitem__)
|
2014-01-25 00:17:36 +00:00
|
|
|
Q(__add__)
|
|
|
|
Q(__sub__)
|
2014-03-16 13:16:54 +00:00
|
|
|
Q(__repr__)
|
|
|
|
Q(__str__)
|
2015-02-14 17:43:54 +00:00
|
|
|
#if MICROPY_PY_DESCRIPTORS
|
|
|
|
Q(__get__)
|
|
|
|
Q(__set__)
|
2015-04-04 19:15:31 +00:00
|
|
|
Q(__delete__)
|
2015-02-14 17:43:54 +00:00
|
|
|
#endif
|
2014-03-31 21:57:56 +00:00
|
|
|
Q(__getattr__)
|
2014-04-05 13:49:03 +00:00
|
|
|
Q(__del__)
|
2014-04-25 18:15:16 +00:00
|
|
|
Q(__call__)
|
2014-06-07 21:01:46 +00:00
|
|
|
Q(__lt__)
|
2014-08-26 08:31:26 +00:00
|
|
|
Q(__gt__)
|
|
|
|
Q(__eq__)
|
|
|
|
Q(__le__)
|
|
|
|
Q(__ge__)
|
2015-01-21 00:19:42 +00:00
|
|
|
Q(__reversed__)
|
2015-01-29 23:42:49 +00:00
|
|
|
#if MICROPY_PY_ALL_SPECIAL_METHODS
|
2015-02-21 17:35:09 +00:00
|
|
|
Q(__mul__)
|
|
|
|
Q(__truediv__)
|
|
|
|
Q(__floordiv__)
|
2015-01-29 23:42:49 +00:00
|
|
|
Q(__iadd__)
|
2015-02-21 17:35:09 +00:00
|
|
|
Q(__isub__)
|
2015-03-29 23:29:59 +00:00
|
|
|
Q(__invert__)
|
|
|
|
Q(__neg__)
|
|
|
|
Q(__pos__)
|
2015-01-29 23:42:49 +00:00
|
|
|
#endif
|
2014-01-25 00:17:36 +00:00
|
|
|
|
2014-01-04 15:57:35 +00:00
|
|
|
Q(micropython)
|
2014-05-10 09:36:38 +00:00
|
|
|
Q(bytecode)
|
2014-08-15 15:45:41 +00:00
|
|
|
Q(const)
|
|
|
|
|
2014-09-06 22:06:36 +00:00
|
|
|
#if MICROPY_EMIT_NATIVE
|
2014-01-04 15:57:35 +00:00
|
|
|
Q(native)
|
|
|
|
Q(viper)
|
2014-08-15 15:45:41 +00:00
|
|
|
Q(uint)
|
2014-09-29 21:10:41 +00:00
|
|
|
Q(ptr)
|
|
|
|
Q(ptr8)
|
|
|
|
Q(ptr16)
|
2014-08-15 15:45:41 +00:00
|
|
|
#endif
|
2014-04-21 12:33:15 +00:00
|
|
|
|
|
|
|
#if MICROPY_EMIT_INLINE_THUMB
|
2014-01-04 15:57:35 +00:00
|
|
|
Q(asm_thumb)
|
2014-04-21 12:33:15 +00:00
|
|
|
Q(label)
|
|
|
|
Q(align)
|
|
|
|
Q(data)
|
|
|
|
#endif
|
2014-01-04 15:57:35 +00:00
|
|
|
|
2014-09-17 22:17:26 +00:00
|
|
|
Q(builtins)
|
|
|
|
|
2014-01-04 18:44:46 +00:00
|
|
|
Q(Ellipsis)
|
2014-01-04 15:57:35 +00:00
|
|
|
Q(StopIteration)
|
2015-05-04 16:45:53 +00:00
|
|
|
#if MICROPY_PY_BUILTINS_NOTIMPLEMENTED
|
|
|
|
Q(NotImplemented)
|
|
|
|
#endif
|
2014-01-04 15:57:35 +00:00
|
|
|
|
2014-02-15 16:10:44 +00:00
|
|
|
Q(BaseException)
|
2014-03-22 15:28:16 +00:00
|
|
|
Q(ArithmeticError)
|
2014-01-04 20:21:15 +00:00
|
|
|
Q(AssertionError)
|
2014-01-04 15:57:35 +00:00
|
|
|
Q(AttributeError)
|
2014-03-22 15:28:16 +00:00
|
|
|
Q(BufferError)
|
|
|
|
Q(EOFError)
|
|
|
|
Q(Exception)
|
|
|
|
Q(FileExistsError)
|
|
|
|
Q(FileNotFoundError)
|
|
|
|
Q(FloatingPointError)
|
|
|
|
Q(GeneratorExit)
|
2014-02-04 01:33:55 +00:00
|
|
|
Q(ImportError)
|
2014-01-15 21:23:31 +00:00
|
|
|
Q(IndentationError)
|
2014-01-04 15:57:35 +00:00
|
|
|
Q(IndexError)
|
2014-10-25 17:19:55 +00:00
|
|
|
Q(KeyboardInterrupt)
|
2014-01-04 15:57:35 +00:00
|
|
|
Q(KeyError)
|
2014-03-22 15:28:16 +00:00
|
|
|
Q(LookupError)
|
|
|
|
Q(MemoryError)
|
2014-01-04 15:57:35 +00:00
|
|
|
Q(NameError)
|
2014-02-09 11:17:36 +00:00
|
|
|
Q(NotImplementedError)
|
2014-01-15 21:23:31 +00:00
|
|
|
Q(OSError)
|
2014-03-22 15:28:16 +00:00
|
|
|
Q(OverflowError)
|
|
|
|
Q(RuntimeError)
|
2014-01-04 15:57:35 +00:00
|
|
|
Q(SyntaxError)
|
2014-05-24 22:32:19 +00:00
|
|
|
Q(SystemExit)
|
2014-01-04 20:21:15 +00:00
|
|
|
Q(TypeError)
|
2014-03-22 15:28:16 +00:00
|
|
|
Q(UnboundLocalError)
|
2014-01-04 15:57:35 +00:00
|
|
|
Q(ValueError)
|
2015-04-20 13:29:31 +00:00
|
|
|
#if MICROPY_EMIT_NATIVE
|
|
|
|
Q(ViperTypeError)
|
|
|
|
#endif
|
2014-03-20 22:40:38 +00:00
|
|
|
Q(ZeroDivisionError)
|
2015-02-23 21:18:36 +00:00
|
|
|
#if MICROPY_PY_BUILTINS_STR_UNICODE
|
|
|
|
Q(UnicodeError)
|
|
|
|
#endif
|
2014-01-04 15:57:35 +00:00
|
|
|
|
2014-03-22 21:31:28 +00:00
|
|
|
Q(None)
|
|
|
|
Q(False)
|
|
|
|
Q(True)
|
|
|
|
Q(object)
|
2014-03-22 15:28:16 +00:00
|
|
|
|
2014-02-15 11:34:50 +00:00
|
|
|
Q(NoneType)
|
|
|
|
|
2015-03-17 23:25:04 +00:00
|
|
|
#if MICROPY_PY_COLLECTIONS_ORDEREDDICT
|
|
|
|
Q(OrderedDict)
|
|
|
|
#endif
|
|
|
|
|
2014-01-04 15:57:35 +00:00
|
|
|
Q(abs)
|
|
|
|
Q(all)
|
|
|
|
Q(any)
|
2014-03-24 23:29:09 +00:00
|
|
|
Q(args)
|
2014-10-23 12:34:35 +00:00
|
|
|
#if MICROPY_PY_ARRAY
|
2014-01-18 17:24:47 +00:00
|
|
|
Q(array)
|
2014-10-23 12:34:35 +00:00
|
|
|
#endif
|
2014-04-15 21:03:55 +00:00
|
|
|
Q(bin)
|
|
|
|
Q({:#b})
|
2014-01-04 15:57:35 +00:00
|
|
|
Q(bool)
|
2014-10-23 12:34:35 +00:00
|
|
|
#if MICROPY_PY_BUILTINS_BYTEARRAY
|
2014-01-18 17:24:47 +00:00
|
|
|
Q(bytearray)
|
2014-10-23 12:34:35 +00:00
|
|
|
#endif
|
|
|
|
#if MICROPY_PY_BUILTINS_MEMORYVIEW
|
|
|
|
Q(memoryview)
|
|
|
|
#endif
|
2014-01-20 18:32:50 +00:00
|
|
|
Q(bytes)
|
2014-01-04 15:57:35 +00:00
|
|
|
Q(callable)
|
|
|
|
Q(chr)
|
2014-02-06 20:31:44 +00:00
|
|
|
Q(classmethod)
|
2014-04-13 07:17:04 +00:00
|
|
|
Q(_collections)
|
2014-08-12 18:57:52 +00:00
|
|
|
#if MICROPY_PY_BUILTINS_COMPLEX
|
2014-01-04 15:57:35 +00:00
|
|
|
Q(complex)
|
2014-08-12 18:57:52 +00:00
|
|
|
Q(real)
|
|
|
|
Q(imag)
|
|
|
|
#endif
|
2014-01-04 15:57:35 +00:00
|
|
|
Q(dict)
|
2014-02-02 22:07:44 +00:00
|
|
|
Q(dir)
|
2014-01-04 15:57:35 +00:00
|
|
|
Q(divmod)
|
2014-01-14 23:55:01 +00:00
|
|
|
Q(enumerate)
|
2014-01-15 22:14:03 +00:00
|
|
|
Q(eval)
|
2014-02-03 22:44:10 +00:00
|
|
|
Q(exec)
|
2014-12-19 13:36:17 +00:00
|
|
|
#if MICROPY_PY_BUILTINS_EXECFILE
|
|
|
|
Q(execfile)
|
|
|
|
#endif
|
2014-01-15 01:37:08 +00:00
|
|
|
Q(filter)
|
2014-08-12 19:16:03 +00:00
|
|
|
#if MICROPY_PY_BUILTINS_FLOAT
|
2014-01-04 15:57:35 +00:00
|
|
|
Q(float)
|
2014-08-12 19:16:03 +00:00
|
|
|
#endif
|
2014-04-08 21:40:58 +00:00
|
|
|
Q(from_bytes)
|
2014-03-26 21:35:13 +00:00
|
|
|
Q(getattr)
|
2015-02-14 16:36:59 +00:00
|
|
|
Q(setattr)
|
2014-04-05 22:00:46 +00:00
|
|
|
Q(globals)
|
2014-05-11 16:05:42 +00:00
|
|
|
Q(hasattr)
|
2014-01-04 15:57:35 +00:00
|
|
|
Q(hash)
|
2014-04-15 11:42:52 +00:00
|
|
|
Q(hex)
|
2014-04-15 11:50:21 +00:00
|
|
|
Q(%#x)
|
2014-02-02 03:00:41 +00:00
|
|
|
Q(id)
|
2014-01-04 15:57:35 +00:00
|
|
|
Q(int)
|
2014-01-09 21:43:51 +00:00
|
|
|
Q(isinstance)
|
|
|
|
Q(issubclass)
|
2014-01-04 15:57:35 +00:00
|
|
|
Q(iter)
|
|
|
|
Q(len)
|
|
|
|
Q(list)
|
2014-04-05 22:00:46 +00:00
|
|
|
Q(locals)
|
2014-01-15 01:10:09 +00:00
|
|
|
Q(map)
|
2014-01-04 15:57:35 +00:00
|
|
|
Q(max)
|
|
|
|
Q(min)
|
2014-02-27 20:22:04 +00:00
|
|
|
Q(namedtuple)
|
2014-01-04 15:57:35 +00:00
|
|
|
Q(next)
|
2014-04-15 21:03:55 +00:00
|
|
|
Q(oct)
|
|
|
|
Q(%#o)
|
2014-04-05 22:02:23 +00:00
|
|
|
Q(open)
|
2014-01-04 15:57:35 +00:00
|
|
|
Q(ord)
|
2014-02-04 22:47:06 +00:00
|
|
|
Q(path)
|
2014-01-04 15:57:35 +00:00
|
|
|
Q(pow)
|
|
|
|
Q(print)
|
|
|
|
Q(range)
|
2014-04-26 18:15:56 +00:00
|
|
|
Q(read)
|
2014-01-15 21:40:48 +00:00
|
|
|
Q(repr)
|
2014-08-12 17:33:40 +00:00
|
|
|
Q(reversed)
|
2014-10-31 11:28:50 +00:00
|
|
|
Q(round)
|
2014-01-13 05:12:50 +00:00
|
|
|
Q(sorted)
|
2014-02-06 20:31:44 +00:00
|
|
|
Q(staticmethod)
|
2014-01-04 15:57:35 +00:00
|
|
|
Q(sum)
|
2014-02-05 00:51:47 +00:00
|
|
|
Q(super)
|
2014-01-13 17:20:46 +00:00
|
|
|
Q(str)
|
2014-02-04 05:55:10 +00:00
|
|
|
Q(sys)
|
2014-04-08 21:40:58 +00:00
|
|
|
Q(to_bytes)
|
2014-01-04 20:21:15 +00:00
|
|
|
Q(tuple)
|
2014-01-04 15:57:35 +00:00
|
|
|
Q(type)
|
2014-03-24 23:29:09 +00:00
|
|
|
Q(value)
|
2014-04-26 18:15:56 +00:00
|
|
|
Q(write)
|
2014-01-13 02:31:00 +00:00
|
|
|
Q(zip)
|
2014-01-04 15:57:35 +00:00
|
|
|
|
2014-10-25 20:59:14 +00:00
|
|
|
#if MICROPY_PY_BUILTINS_COMPILE
|
|
|
|
Q(compile)
|
|
|
|
Q(code)
|
|
|
|
Q(single)
|
|
|
|
#endif
|
|
|
|
|
2014-04-02 09:34:44 +00:00
|
|
|
Q(sep)
|
|
|
|
Q(end)
|
|
|
|
|
2015-03-06 19:48:14 +00:00
|
|
|
#if MICROPY_PY_BUILTINS_RANGE_ATTRS
|
|
|
|
Q(step)
|
|
|
|
Q(stop)
|
|
|
|
#endif
|
|
|
|
|
2014-03-26 20:15:40 +00: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 15:57:35 +00:00
|
|
|
Q(append)
|
2014-03-26 20:15:40 +00:00
|
|
|
Q(close)
|
|
|
|
Q(send)
|
|
|
|
Q(throw)
|
|
|
|
Q(count)
|
|
|
|
Q(extend)
|
|
|
|
Q(index)
|
|
|
|
Q(remove)
|
|
|
|
Q(insert)
|
2014-01-04 15:57:35 +00:00
|
|
|
Q(pop)
|
|
|
|
Q(sort)
|
|
|
|
Q(join)
|
2014-01-08 22:23:45 +00:00
|
|
|
Q(strip)
|
2014-04-26 03:20:08 +00:00
|
|
|
Q(lstrip)
|
|
|
|
Q(rstrip)
|
2014-01-04 15:57:35 +00:00
|
|
|
Q(format)
|
2014-02-08 19:01:47 +00:00
|
|
|
Q(key)
|
|
|
|
Q(reverse)
|
2014-03-26 20:15:40 +00:00
|
|
|
Q(add)
|
|
|
|
Q(clear)
|
|
|
|
Q(copy)
|
|
|
|
Q(pop)
|
|
|
|
Q(remove)
|
|
|
|
Q(find)
|
|
|
|
Q(rfind)
|
2014-04-08 18:42:19 +00:00
|
|
|
Q(rindex)
|
2014-03-26 20:15:40 +00:00
|
|
|
Q(split)
|
2015-04-03 21:09:23 +00:00
|
|
|
#if MICROPY_PY_BUILTINS_STR_SPLITLINES
|
|
|
|
Q(splitlines)
|
|
|
|
Q(keepends)
|
|
|
|
Q(\n)
|
|
|
|
#endif
|
2014-05-13 05:07:08 +00:00
|
|
|
Q(rsplit)
|
2014-03-26 20:15:40 +00:00
|
|
|
Q(startswith)
|
2014-05-24 19:46:51 +00:00
|
|
|
Q(endswith)
|
2014-03-26 20:15:40 +00:00
|
|
|
Q(replace)
|
|
|
|
Q(partition)
|
|
|
|
Q(rpartition)
|
2014-05-10 16:47:41 +00:00
|
|
|
Q(lower)
|
|
|
|
Q(upper)
|
2014-05-31 06:30:03 +00:00
|
|
|
Q(isspace)
|
|
|
|
Q(isalpha)
|
|
|
|
Q(isdigit)
|
|
|
|
Q(isupper)
|
|
|
|
Q(islower)
|
2014-05-06 16:38:54 +00:00
|
|
|
Q(iterable)
|
|
|
|
Q(start)
|
2014-01-23 22:22:00 +00:00
|
|
|
|
2014-02-15 11:34:50 +00:00
|
|
|
Q(bound_method)
|
|
|
|
Q(closure)
|
|
|
|
Q(dict_view)
|
|
|
|
Q(function)
|
|
|
|
Q(generator)
|
|
|
|
Q(iterator)
|
|
|
|
Q(module)
|
|
|
|
Q(slice)
|
|
|
|
|
2014-08-12 19:16:03 +00: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 12:32:54 +00:00
|
|
|
#if MICROPY_PY_BUILTINS_FROZENSET
|
2014-05-10 13:02:17 +00:00
|
|
|
Q(frozenset)
|
|
|
|
#endif
|
|
|
|
|
2014-05-24 22:03:12 +00:00
|
|
|
#if MICROPY_PY_MATH || MICROPY_PY_CMATH
|
2014-03-08 15:24:39 +00:00
|
|
|
Q(math)
|
2014-03-20 16:39:22 +00:00
|
|
|
Q(e)
|
2014-03-08 15:24:39 +00:00
|
|
|
Q(pi)
|
|
|
|
Q(sqrt)
|
|
|
|
Q(pow)
|
|
|
|
Q(exp)
|
2014-03-12 21:31:41 +00:00
|
|
|
Q(expm1)
|
2014-03-08 15:24:39 +00: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 21:26:51 +00:00
|
|
|
Q(ceil)
|
|
|
|
Q(copysign)
|
|
|
|
Q(fabs)
|
|
|
|
Q(fmod)
|
2014-03-22 14:39:33 +00:00
|
|
|
Q(floor)
|
2014-03-20 21:26:51 +00:00
|
|
|
Q(isfinite)
|
|
|
|
Q(isinf)
|
|
|
|
Q(isnan)
|
|
|
|
Q(trunc)
|
2014-03-22 14:39:33 +00:00
|
|
|
Q(modf)
|
|
|
|
Q(frexp)
|
|
|
|
Q(ldexp)
|
|
|
|
Q(degrees)
|
|
|
|
Q(radians)
|
2015-02-22 14:48:18 +00:00
|
|
|
#if MICROPY_PY_MATH_SPECIAL_FUNCTIONS
|
2014-03-22 14:39:33 +00:00
|
|
|
Q(erf)
|
|
|
|
Q(erfc)
|
|
|
|
Q(gamma)
|
|
|
|
Q(lgamma)
|
2014-04-17 16:11:03 +00:00
|
|
|
#endif
|
2015-02-22 14:48:18 +00:00
|
|
|
#endif
|
2014-04-17 16:11:03 +00:00
|
|
|
|
2014-05-24 22:03:12 +00:00
|
|
|
#if MICROPY_PY_CMATH
|
2014-04-17 16:11:03 +00:00
|
|
|
Q(cmath)
|
|
|
|
Q(phase)
|
|
|
|
Q(polar)
|
|
|
|
Q(rect)
|
|
|
|
#endif
|
2014-03-08 15:24:39 +00:00
|
|
|
|
2015-01-09 20:12:54 +00:00
|
|
|
#if MICROPY_PY_MICROPYTHON_MEM_INFO
|
2014-08-12 19:16:03 +00:00
|
|
|
#if MICROPY_MEM_STATS
|
2014-03-08 15:24:39 +00:00
|
|
|
Q(mem_total)
|
|
|
|
Q(mem_current)
|
|
|
|
Q(mem_peak)
|
2015-01-09 20:12:54 +00:00
|
|
|
#endif
|
2014-12-01 18:41:56 +00:00
|
|
|
Q(mem_info)
|
|
|
|
Q(qstr_info)
|
2014-08-12 19:16:03 +00:00
|
|
|
#endif
|
2014-03-08 15:24:39 +00:00
|
|
|
|
2014-07-02 06:46:53 +00:00
|
|
|
#if MICROPY_ENABLE_EMERGENCY_EXCEPTION_BUF && (MICROPY_EMERGENCY_EXCEPTION_BUF_SIZE == 0)
|
|
|
|
Q(alloc_emergency_exception_buf)
|
|
|
|
#endif
|
2015-02-15 19:34:31 +00:00
|
|
|
Q(maximum recursion depth exceeded)
|
2014-07-02 06:46:53 +00:00
|
|
|
|
2014-01-23 22:22:00 +00:00
|
|
|
Q(<module>)
|
|
|
|
Q(<lambda>)
|
|
|
|
Q(<listcomp>)
|
|
|
|
Q(<dictcomp>)
|
|
|
|
Q(<setcomp>)
|
|
|
|
Q(<genexpr>)
|
2014-01-25 13:51:19 +00:00
|
|
|
Q(<string>)
|
2014-01-23 22:22:00 +00:00
|
|
|
Q(<stdin>)
|
2014-04-13 02:28:46 +00:00
|
|
|
|
|
|
|
#if MICROPY_CPYTHON_COMPAT
|
|
|
|
Q(encode)
|
|
|
|
Q(decode)
|
|
|
|
Q(utf-8)
|
|
|
|
#endif
|
2014-04-13 03:55:24 +00:00
|
|
|
|
2014-05-24 22:03:12 +00:00
|
|
|
#if MICROPY_PY_SYS
|
2014-04-13 03:55:24 +00:00
|
|
|
Q(argv)
|
2014-04-13 06:53:52 +00:00
|
|
|
Q(byteorder)
|
|
|
|
Q(big)
|
2014-05-10 13:50:45 +00:00
|
|
|
Q(exit)
|
2014-04-13 06:53:52 +00:00
|
|
|
Q(little)
|
2014-06-07 20:40:04 +00:00
|
|
|
#ifdef MICROPY_PY_SYS_PLATFORM
|
|
|
|
Q(platform)
|
|
|
|
#endif
|
2014-04-13 03:55:24 +00:00
|
|
|
Q(stdin)
|
|
|
|
Q(stdout)
|
|
|
|
Q(stderr)
|
2015-05-13 22:49:21 +00:00
|
|
|
#if MICROPY_PY_SYS_STDIO_BUFFER
|
|
|
|
Q(buffer)
|
|
|
|
#endif
|
2014-04-13 22:46:45 +00:00
|
|
|
Q(version)
|
2014-04-13 06:46:58 +00:00
|
|
|
Q(version_info)
|
2015-04-21 14:45:04 +00:00
|
|
|
#if MICROPY_PY_ATTRTUPLE
|
|
|
|
Q(name)
|
|
|
|
#endif
|
|
|
|
Q(implementation)
|
2014-07-03 13:50:11 +00:00
|
|
|
#if MICROPY_PY_SYS_MAXSIZE
|
|
|
|
Q(maxsize)
|
|
|
|
#endif
|
2015-04-25 00:17:41 +00:00
|
|
|
#if MICROPY_PY_SYS_EXC_INFO
|
|
|
|
Q(exc_info)
|
|
|
|
#endif
|
2014-12-06 12:29:09 +00:00
|
|
|
Q(print_exception)
|
2014-04-13 03:55:24 +00:00
|
|
|
#endif
|
2014-04-13 17:59:45 +00:00
|
|
|
|
2014-05-24 22:03:12 +00:00
|
|
|
#if MICROPY_PY_STRUCT
|
2015-05-04 13:35:40 +00:00
|
|
|
Q(ustruct)
|
2014-04-19 00:13:15 +00:00
|
|
|
Q(pack)
|
|
|
|
Q(unpack)
|
2015-05-04 12:50:05 +00:00
|
|
|
Q(calcsize)
|
2014-04-19 00:13:15 +00:00
|
|
|
#endif
|
|
|
|
|
2014-06-28 00:03:47 +00:00
|
|
|
#if MICROPY_PY_UCTYPES
|
|
|
|
Q(uctypes)
|
2015-05-04 13:35:40 +00:00
|
|
|
Q(struct)
|
2014-06-28 00:03:47 +00: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 21:06:36 +00:00
|
|
|
|
|
|
|
Q(BF_POS)
|
|
|
|
Q(BF_LEN)
|
2014-06-28 00:03:47 +00:00
|
|
|
#endif
|
|
|
|
|
2014-05-24 22:03:12 +00:00
|
|
|
#if MICROPY_PY_IO
|
2014-06-11 22:22:25 +00:00
|
|
|
Q(_io)
|
2014-04-26 18:15:56 +00:00
|
|
|
Q(readall)
|
2014-10-18 19:44:07 +00:00
|
|
|
Q(readinto)
|
2014-04-26 18:15:56 +00:00
|
|
|
Q(readline)
|
2014-05-03 21:01:32 +00:00
|
|
|
Q(readlines)
|
2014-11-16 22:16:14 +00:00
|
|
|
Q(seek)
|
2014-05-19 17:59:13 +00:00
|
|
|
Q(FileIO)
|
|
|
|
Q(TextIOWrapper)
|
2014-04-26 17:26:14 +00:00
|
|
|
Q(StringIO)
|
|
|
|
Q(BytesIO)
|
|
|
|
Q(getvalue)
|
2014-07-13 20:07:42 +00:00
|
|
|
Q(file)
|
2014-10-04 06:51:33 +00:00
|
|
|
Q(mode)
|
|
|
|
Q(r)
|
|
|
|
Q(encoding)
|
2014-04-26 17:26:14 +00:00
|
|
|
#endif
|
|
|
|
|
2014-05-24 22:03:12 +00:00
|
|
|
#if MICROPY_PY_GC
|
2014-05-05 23:16:43 +00:00
|
|
|
Q(gc)
|
|
|
|
Q(collect)
|
2014-05-08 22:04:49 +00:00
|
|
|
Q(disable)
|
|
|
|
Q(enable)
|
2014-10-31 21:30:46 +00:00
|
|
|
Q(isenabled)
|
2014-06-24 18:23:40 +00:00
|
|
|
Q(mem_free)
|
|
|
|
Q(mem_alloc)
|
2014-05-05 23:16:43 +00:00
|
|
|
#endif
|
|
|
|
|
2014-06-01 12:32:54 +00:00
|
|
|
#if MICROPY_PY_BUILTINS_PROPERTY
|
2014-04-13 17:59:45 +00:00
|
|
|
Q(property)
|
|
|
|
Q(getter)
|
|
|
|
Q(setter)
|
|
|
|
Q(deleter)
|
|
|
|
#endif
|
2014-08-08 19:51:40 +00:00
|
|
|
|
2014-10-12 15:16:34 +00:00
|
|
|
#if MICROPY_PY_UZLIB
|
|
|
|
Q(uzlib)
|
|
|
|
Q(decompress)
|
|
|
|
#endif
|
|
|
|
|
2014-09-17 21:56:34 +00:00
|
|
|
#if MICROPY_PY_UJSON
|
|
|
|
Q(ujson)
|
|
|
|
Q(dumps)
|
2014-09-21 10:40:01 +00:00
|
|
|
Q(loads)
|
2014-09-17 21:56:34 +00:00
|
|
|
#endif
|
2014-09-12 15:48:07 +00:00
|
|
|
|
|
|
|
#if MICROPY_PY_URE
|
|
|
|
Q(ure)
|
|
|
|
Q(compile)
|
|
|
|
Q(match)
|
|
|
|
Q(search)
|
|
|
|
Q(group)
|
|
|
|
Q(DEBUG)
|
|
|
|
#endif
|
2014-10-22 17:37:18 +00:00
|
|
|
|
|
|
|
#if MICROPY_PY_UHEAPQ
|
|
|
|
Q(uheapq)
|
|
|
|
Q(heappush)
|
|
|
|
Q(heappop)
|
|
|
|
Q(heapify)
|
|
|
|
#endif
|
2014-11-21 23:19:13 +00:00
|
|
|
|
|
|
|
#if MICROPY_PY_UHASHLIB
|
|
|
|
Q(uhashlib)
|
|
|
|
Q(update)
|
|
|
|
Q(digest)
|
|
|
|
Q(sha256)
|
|
|
|
#endif
|
2014-11-29 04:19:30 +00:00
|
|
|
|
|
|
|
#if MICROPY_PY_UBINASCII
|
|
|
|
Q(ubinascii)
|
|
|
|
Q(hexlify)
|
2015-05-18 21:41:25 +00:00
|
|
|
Q(unhexlify)
|
2014-11-29 04:19:30 +00:00
|
|
|
#endif
|
2015-05-03 17:25:40 +00:00
|
|
|
|
|
|
|
#if MICROPY_PY_MACHINE
|
|
|
|
Q(machine)
|
|
|
|
Q(mem)
|
|
|
|
Q(mem8)
|
|
|
|
Q(mem16)
|
|
|
|
Q(mem32)
|
|
|
|
#endif
|