2014-04-11 21:50:15 +04:00
|
|
|
#include "mpconfig.h"
|
2014-01-04 19:57:35 +04:00
|
|
|
// All the qstr definitions in this file are available as constants.
|
2014-03-08 19:24:39 +04:00
|
|
|
// That is, they are in ROM and you can reference them simply as MP_QSTR_xxxx.
|
2014-01-04 19:57:35 +04:00
|
|
|
|
|
|
|
Q(__build_class__)
|
|
|
|
Q(__class__)
|
|
|
|
Q(__doc__)
|
2014-02-04 02:46:17 +04:00
|
|
|
Q(__import__)
|
2014-01-04 19:57:35 +04:00
|
|
|
Q(__init__)
|
|
|
|
Q(__locals__)
|
|
|
|
Q(__main__)
|
|
|
|
Q(__module__)
|
|
|
|
Q(__name__)
|
|
|
|
Q(__next__)
|
|
|
|
Q(__qualname__)
|
2014-04-12 00:25:35 +04:00
|
|
|
Q(__path__)
|
2014-01-04 19:57:35 +04:00
|
|
|
Q(__repl_print__)
|
|
|
|
|
2014-01-30 14:05:33 +04:00
|
|
|
Q(__bool__)
|
2014-04-13 11:39:25 +04:00
|
|
|
Q(__contains__)
|
2014-03-29 06:10:11 +04:00
|
|
|
Q(__enter__)
|
|
|
|
Q(__exit__)
|
2014-01-30 14:05:33 +04:00
|
|
|
Q(__len__)
|
2014-03-26 22:37:06 +04:00
|
|
|
Q(__iter__)
|
2014-01-25 04:17:36 +04:00
|
|
|
Q(__getitem__)
|
2014-02-08 23:01:47 +04:00
|
|
|
Q(__setitem__)
|
2014-04-14 00:55:59 +04:00
|
|
|
Q(__delitem__)
|
2014-01-25 04:17:36 +04:00
|
|
|
Q(__add__)
|
|
|
|
Q(__sub__)
|
2014-03-16 17:16:54 +04:00
|
|
|
Q(__repr__)
|
|
|
|
Q(__str__)
|
2014-04-01 01:57:56 +04:00
|
|
|
Q(__getattr__)
|
2014-04-05 17:49:03 +04:00
|
|
|
Q(__del__)
|
2014-01-25 04:17:36 +04:00
|
|
|
|
2014-01-04 19:57:35 +04:00
|
|
|
Q(micropython)
|
|
|
|
Q(byte_code)
|
|
|
|
Q(native)
|
|
|
|
Q(viper)
|
|
|
|
Q(asm_thumb)
|
|
|
|
|
2014-01-04 22:44:46 +04:00
|
|
|
Q(Ellipsis)
|
2014-01-04 19:57:35 +04:00
|
|
|
Q(StopIteration)
|
|
|
|
|
2014-02-15 20:10:44 +04:00
|
|
|
Q(BaseException)
|
2014-03-22 19:28:16 +04:00
|
|
|
Q(ArithmeticError)
|
2014-01-05 00:21:15 +04:00
|
|
|
Q(AssertionError)
|
2014-01-04 19:57:35 +04:00
|
|
|
Q(AttributeError)
|
2014-03-22 19:28:16 +04:00
|
|
|
Q(BufferError)
|
|
|
|
Q(EOFError)
|
|
|
|
Q(Exception)
|
|
|
|
Q(FileExistsError)
|
|
|
|
Q(FileNotFoundError)
|
|
|
|
Q(FloatingPointError)
|
|
|
|
Q(GeneratorExit)
|
|
|
|
Q(IOError)
|
2014-02-04 05:33:55 +04:00
|
|
|
Q(ImportError)
|
2014-01-16 01:23:31 +04:00
|
|
|
Q(IndentationError)
|
2014-01-04 19:57:35 +04:00
|
|
|
Q(IndexError)
|
|
|
|
Q(KeyError)
|
2014-03-22 19:28:16 +04:00
|
|
|
Q(LookupError)
|
|
|
|
Q(MemoryError)
|
2014-01-04 19:57:35 +04:00
|
|
|
Q(NameError)
|
2014-02-09 15:17:36 +04:00
|
|
|
Q(NotImplementedError)
|
2014-01-16 01:23:31 +04:00
|
|
|
Q(OSError)
|
2014-03-22 19:28:16 +04:00
|
|
|
Q(OverflowError)
|
|
|
|
Q(RuntimeError)
|
2014-01-04 19:57:35 +04:00
|
|
|
Q(SyntaxError)
|
2014-03-22 19:28:16 +04:00
|
|
|
Q(SystemError)
|
2014-01-05 00:21:15 +04:00
|
|
|
Q(TypeError)
|
2014-03-22 19:28:16 +04:00
|
|
|
Q(UnboundLocalError)
|
2014-01-04 19:57:35 +04:00
|
|
|
Q(ValueError)
|
2014-03-21 02:40:38 +04:00
|
|
|
Q(ZeroDivisionError)
|
2014-01-04 19:57:35 +04:00
|
|
|
|
2014-03-23 01:31:28 +04:00
|
|
|
Q(None)
|
|
|
|
Q(False)
|
|
|
|
Q(True)
|
|
|
|
Q(object)
|
2014-03-22 19:28:16 +04:00
|
|
|
|
2014-02-15 15:34:50 +04:00
|
|
|
Q(NoneType)
|
|
|
|
|
2014-01-04 19:57:35 +04:00
|
|
|
Q(abs)
|
|
|
|
Q(all)
|
|
|
|
Q(any)
|
2014-03-25 03:29:09 +04:00
|
|
|
Q(args)
|
2014-01-18 21:24:47 +04:00
|
|
|
Q(array)
|
2014-04-16 01:03:55 +04:00
|
|
|
Q(bin)
|
|
|
|
Q({:#b})
|
2014-01-04 19:57:35 +04:00
|
|
|
Q(bool)
|
2014-01-18 21:24:47 +04:00
|
|
|
Q(bytearray)
|
2014-01-20 22:32:50 +04:00
|
|
|
Q(bytes)
|
2014-01-04 19:57:35 +04:00
|
|
|
Q(callable)
|
2014-04-10 04:45:38 +04:00
|
|
|
#if MICROPY_ENABLE_MOD_STRUCT
|
|
|
|
Q(calcsize)
|
|
|
|
#endif
|
2014-01-04 19:57:35 +04:00
|
|
|
Q(chr)
|
2014-02-07 00:31:44 +04:00
|
|
|
Q(classmethod)
|
2014-04-13 11:17:04 +04:00
|
|
|
Q(_collections)
|
2014-01-04 19:57:35 +04:00
|
|
|
Q(complex)
|
|
|
|
Q(dict)
|
2014-02-03 02:07:44 +04:00
|
|
|
Q(dir)
|
2014-01-04 19:57:35 +04:00
|
|
|
Q(divmod)
|
2014-01-15 03:55:01 +04:00
|
|
|
Q(enumerate)
|
2014-01-16 02:14:03 +04:00
|
|
|
Q(eval)
|
2014-02-04 02:44:10 +04:00
|
|
|
Q(exec)
|
2014-01-15 05:37:08 +04:00
|
|
|
Q(filter)
|
2014-01-04 19:57:35 +04:00
|
|
|
Q(float)
|
2014-04-09 01:40:58 +04:00
|
|
|
Q(from_bytes)
|
2014-03-27 01:35:13 +04:00
|
|
|
Q(getattr)
|
2014-04-06 02:00:46 +04:00
|
|
|
Q(globals)
|
2014-01-04 19:57:35 +04:00
|
|
|
Q(hash)
|
2014-04-15 15:42:52 +04:00
|
|
|
Q(hex)
|
2014-04-15 15:50:21 +04:00
|
|
|
Q(%#x)
|
2014-02-02 07:00:41 +04:00
|
|
|
Q(id)
|
2014-04-03 15:57:53 +04:00
|
|
|
Q(io)
|
2014-01-04 19:57:35 +04:00
|
|
|
Q(int)
|
2014-01-10 01:43:51 +04:00
|
|
|
Q(isinstance)
|
|
|
|
Q(issubclass)
|
2014-01-04 19:57:35 +04:00
|
|
|
Q(iter)
|
|
|
|
Q(len)
|
|
|
|
Q(list)
|
2014-04-06 02:00:46 +04:00
|
|
|
Q(locals)
|
2014-01-15 05:10:09 +04:00
|
|
|
Q(map)
|
2014-01-04 19:57:35 +04:00
|
|
|
Q(max)
|
|
|
|
Q(min)
|
2014-02-28 00:22:04 +04:00
|
|
|
Q(namedtuple)
|
2014-01-04 19:57:35 +04:00
|
|
|
Q(next)
|
2014-04-16 01:03:55 +04:00
|
|
|
Q(oct)
|
|
|
|
Q(%#o)
|
2014-04-06 02:02:23 +04:00
|
|
|
Q(open)
|
2014-01-04 19:57:35 +04:00
|
|
|
Q(ord)
|
2014-02-05 02:47:06 +04:00
|
|
|
Q(path)
|
2014-01-04 19:57:35 +04:00
|
|
|
Q(pow)
|
|
|
|
Q(print)
|
|
|
|
Q(range)
|
2014-01-16 01:40:48 +04:00
|
|
|
Q(repr)
|
2014-01-04 19:57:35 +04:00
|
|
|
Q(set)
|
2014-01-13 09:12:50 +04:00
|
|
|
Q(sorted)
|
2014-02-07 00:31:44 +04:00
|
|
|
Q(staticmethod)
|
2014-01-04 19:57:35 +04:00
|
|
|
Q(sum)
|
2014-02-05 04:51:47 +04:00
|
|
|
Q(super)
|
2014-01-13 21:20:46 +04:00
|
|
|
Q(str)
|
2014-04-10 04:45:38 +04:00
|
|
|
#if MICROPY_ENABLE_MOD_STRUCT
|
|
|
|
Q(struct)
|
|
|
|
#endif
|
2014-02-04 09:55:10 +04:00
|
|
|
Q(sys)
|
2014-04-09 01:40:58 +04:00
|
|
|
Q(to_bytes)
|
2014-01-05 00:21:15 +04:00
|
|
|
Q(tuple)
|
2014-01-04 19:57:35 +04:00
|
|
|
Q(type)
|
2014-04-10 04:45:38 +04:00
|
|
|
#if MICROPY_ENABLE_MOD_STRUCT
|
|
|
|
Q(unpack)
|
|
|
|
#endif
|
2014-03-25 03:29:09 +04:00
|
|
|
Q(value)
|
2014-01-13 06:31:00 +04:00
|
|
|
Q(zip)
|
2014-01-04 19:57:35 +04:00
|
|
|
|
2014-04-02 13:34:44 +04:00
|
|
|
Q(sep)
|
|
|
|
Q(end)
|
|
|
|
|
2014-03-27 00: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 19:57:35 +04:00
|
|
|
Q(append)
|
2014-03-27 00:15:40 +04:00
|
|
|
Q(close)
|
|
|
|
Q(send)
|
|
|
|
Q(throw)
|
|
|
|
Q(count)
|
|
|
|
Q(extend)
|
|
|
|
Q(index)
|
|
|
|
Q(remove)
|
|
|
|
Q(insert)
|
2014-01-04 19:57:35 +04:00
|
|
|
Q(pop)
|
|
|
|
Q(sort)
|
|
|
|
Q(join)
|
2014-01-09 02:23:45 +04:00
|
|
|
Q(strip)
|
2014-01-04 19:57:35 +04:00
|
|
|
Q(format)
|
2014-02-08 23:01:47 +04:00
|
|
|
Q(key)
|
|
|
|
Q(reverse)
|
2014-03-27 00:15:40 +04:00
|
|
|
Q(add)
|
|
|
|
Q(clear)
|
|
|
|
Q(copy)
|
|
|
|
Q(discard)
|
|
|
|
Q(difference)
|
|
|
|
Q(difference_update)
|
|
|
|
Q(intersection)
|
|
|
|
Q(intersection_update)
|
|
|
|
Q(isdisjoint)
|
|
|
|
Q(issubset)
|
|
|
|
Q(issuperset)
|
|
|
|
Q(pop)
|
|
|
|
Q(remove)
|
|
|
|
Q(symmetric_difference)
|
|
|
|
Q(symmetric_difference_update)
|
|
|
|
Q(union)
|
|
|
|
Q(update)
|
|
|
|
Q(find)
|
|
|
|
Q(rfind)
|
2014-04-08 22:42:19 +04:00
|
|
|
Q(rindex)
|
2014-03-27 00:15:40 +04:00
|
|
|
Q(split)
|
|
|
|
Q(startswith)
|
|
|
|
Q(replace)
|
|
|
|
Q(partition)
|
|
|
|
Q(rpartition)
|
2014-01-24 02:22:00 +04:00
|
|
|
|
2014-02-15 15:34:50 +04:00
|
|
|
Q(bound_method)
|
|
|
|
Q(closure)
|
|
|
|
Q(dict_view)
|
|
|
|
Q(function)
|
|
|
|
Q(generator)
|
|
|
|
Q(iterator)
|
|
|
|
Q(module)
|
|
|
|
Q(slice)
|
|
|
|
|
2014-03-08 19:24:39 +04:00
|
|
|
Q(math)
|
2014-03-20 20:39:22 +04:00
|
|
|
Q(e)
|
2014-03-08 19:24:39 +04:00
|
|
|
Q(pi)
|
|
|
|
Q(sqrt)
|
|
|
|
Q(pow)
|
|
|
|
Q(exp)
|
2014-03-13 01:31:41 +04:00
|
|
|
Q(expm1)
|
2014-03-08 19:24:39 +04: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-21 01:26:51 +04:00
|
|
|
Q(ceil)
|
|
|
|
Q(copysign)
|
|
|
|
Q(fabs)
|
|
|
|
Q(fmod)
|
2014-03-22 18:39:33 +04:00
|
|
|
Q(floor)
|
2014-03-21 01:26:51 +04:00
|
|
|
Q(isfinite)
|
|
|
|
Q(isinf)
|
|
|
|
Q(isnan)
|
|
|
|
Q(trunc)
|
2014-03-22 18:39:33 +04:00
|
|
|
Q(modf)
|
|
|
|
Q(frexp)
|
|
|
|
Q(ldexp)
|
|
|
|
Q(degrees)
|
|
|
|
Q(radians)
|
|
|
|
Q(erf)
|
|
|
|
Q(erfc)
|
|
|
|
Q(gamma)
|
|
|
|
Q(lgamma)
|
2014-03-08 19:24:39 +04:00
|
|
|
|
|
|
|
Q(mem_total)
|
|
|
|
Q(mem_current)
|
|
|
|
Q(mem_peak)
|
|
|
|
|
2014-01-24 02:22:00 +04:00
|
|
|
Q(<module>)
|
|
|
|
Q(<lambda>)
|
|
|
|
Q(<listcomp>)
|
|
|
|
Q(<dictcomp>)
|
|
|
|
Q(<setcomp>)
|
|
|
|
Q(<genexpr>)
|
2014-01-25 17:51:19 +04:00
|
|
|
Q(<string>)
|
2014-01-24 02:22:00 +04:00
|
|
|
Q(<stdin>)
|
2014-04-13 06:28:46 +04:00
|
|
|
|
|
|
|
#if MICROPY_CPYTHON_COMPAT
|
|
|
|
Q(encode)
|
|
|
|
Q(decode)
|
|
|
|
Q(utf-8)
|
|
|
|
#endif
|
2014-04-13 07:55:24 +04:00
|
|
|
|
|
|
|
#if MICROPY_ENABLE_MOD_SYS
|
|
|
|
Q(argv)
|
2014-04-13 10:53:52 +04:00
|
|
|
Q(byteorder)
|
|
|
|
Q(big)
|
|
|
|
Q(little)
|
2014-04-13 07:55:24 +04:00
|
|
|
Q(stdin)
|
|
|
|
Q(stdout)
|
|
|
|
Q(stderr)
|
2014-04-14 02:46:45 +04:00
|
|
|
Q(version)
|
2014-04-13 10:46:58 +04:00
|
|
|
Q(version_info)
|
2014-04-13 07:55:24 +04:00
|
|
|
#endif
|
2014-04-13 21:59:45 +04:00
|
|
|
|
|
|
|
#if MICROPY_ENABLE_PROPERTY
|
|
|
|
Q(property)
|
|
|
|
Q(getter)
|
|
|
|
Q(setter)
|
|
|
|
Q(deleter)
|
|
|
|
#endif
|