c5966128c7
Each built-in exception is now a type, with base type BaseException. C exceptions are created by passing a pointer to the exception type to make an instance of. When raising an exception from the VM, an instance is created automatically if an exception type is raised (as opposed to an exception instance). Exception matching (RT_BINARY_OP_EXCEPTION_MATCH) is now proper. Handling of parse error changed to match new exceptions. mp_const_type renamed to mp_type_type for consistency.
124 lines
1.4 KiB
C
124 lines
1.4 KiB
C
// All the qstr definitions in this file are available as constants.
|
|
// That is, they are in ROM and you can reference them simple as MP_QSTR_xxxx.
|
|
|
|
Q(__build_class__)
|
|
Q(__class__)
|
|
Q(__doc__)
|
|
Q(__import__)
|
|
Q(__init__)
|
|
Q(__locals__)
|
|
Q(__main__)
|
|
Q(__module__)
|
|
Q(__name__)
|
|
Q(__next__)
|
|
Q(__qualname__)
|
|
Q(__repl_print__)
|
|
|
|
Q(__bool__)
|
|
Q(__len__)
|
|
Q(__getitem__)
|
|
Q(__setitem__)
|
|
Q(__add__)
|
|
Q(__sub__)
|
|
|
|
Q(micropython)
|
|
Q(byte_code)
|
|
Q(native)
|
|
Q(viper)
|
|
Q(asm_thumb)
|
|
|
|
Q(Ellipsis)
|
|
Q(StopIteration)
|
|
|
|
Q(BaseException)
|
|
Q(AssertionError)
|
|
Q(AttributeError)
|
|
Q(ImportError)
|
|
Q(IndentationError)
|
|
Q(IndexError)
|
|
Q(KeyError)
|
|
Q(NameError)
|
|
Q(NotImplementedError)
|
|
Q(OSError)
|
|
Q(SyntaxError)
|
|
Q(TypeError)
|
|
Q(ValueError)
|
|
Q(OverflowError)
|
|
|
|
Q(NoneType)
|
|
|
|
Q(abs)
|
|
Q(all)
|
|
Q(any)
|
|
Q(array)
|
|
Q(bool)
|
|
Q(bytearray)
|
|
Q(bytes)
|
|
Q(callable)
|
|
Q(chr)
|
|
Q(classmethod)
|
|
Q(complex)
|
|
Q(dict)
|
|
Q(dir)
|
|
Q(divmod)
|
|
Q(enumerate)
|
|
Q(eval)
|
|
Q(exec)
|
|
Q(filter)
|
|
Q(float)
|
|
Q(hash)
|
|
Q(id)
|
|
Q(int)
|
|
Q(isinstance)
|
|
Q(issubclass)
|
|
Q(iter)
|
|
Q(len)
|
|
Q(list)
|
|
Q(map)
|
|
Q(max)
|
|
Q(min)
|
|
Q(next)
|
|
Q(ord)
|
|
Q(path)
|
|
Q(pow)
|
|
Q(print)
|
|
Q(range)
|
|
Q(repr)
|
|
Q(set)
|
|
Q(sorted)
|
|
Q(staticmethod)
|
|
Q(sum)
|
|
Q(super)
|
|
Q(str)
|
|
Q(sys)
|
|
Q(tuple)
|
|
Q(type)
|
|
Q(zip)
|
|
|
|
Q(append)
|
|
Q(pop)
|
|
Q(sort)
|
|
Q(join)
|
|
Q(strip)
|
|
Q(format)
|
|
Q(key)
|
|
Q(reverse)
|
|
|
|
Q(bound_method)
|
|
Q(closure)
|
|
Q(dict_view)
|
|
Q(function)
|
|
Q(generator)
|
|
Q(iterator)
|
|
Q(module)
|
|
Q(slice)
|
|
|
|
Q(<module>)
|
|
Q(<lambda>)
|
|
Q(<listcomp>)
|
|
Q(<dictcomp>)
|
|
Q(<setcomp>)
|
|
Q(<genexpr>)
|
|
Q(<string>)
|
|
Q(<stdin>)
|