blob: 88c0d5a3efdc32a35273d6ba132842e20542c25f [file] [log] [blame]
Damien George04b91472014-05-03 23:27:38 +01001/*
2 * This file is part of the Micro Python project, http://micropython.org/
3 *
4 * The MIT License (MIT)
5 *
6 * Copyright (c) 2013, 2014 Damien P. George
7 *
8 * Permission is hereby granted, free of charge, to any person obtaining a copy
9 * of this software and associated documentation files (the "Software"), to deal
10 * in the Software without restriction, including without limitation the rights
11 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12 * copies of the Software, and to permit persons to whom the Software is
13 * furnished to do so, subject to the following conditions:
14 *
15 * The above copyright notice and this permission notice shall be included in
16 * all copies or substantial portions of the Software.
17 *
18 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24 * THE SOFTWARE.
25 */
26
Damien George51dfcb42015-01-01 20:27:54 +000027#include "py/mpconfig.h"
28
Damien Georgeeb7bfcb2014-01-04 15:57:35 +000029// All the qstr definitions in this file are available as constants.
Damien George0c36da02014-03-08 15:24:39 +000030// That is, they are in ROM and you can reference them simply as MP_QSTR_xxxx.
Damien Georgeeb7bfcb2014-01-04 15:57:35 +000031
Damien George6942f802015-01-11 17:52:45 +000032// qstr configuration passed to makeqstrdata.py of the form QCFG(key, value)
Damien George95836f82015-01-11 22:27:30 +000033QCFG(BYTES_IN_LEN, MICROPY_QSTR_BYTES_IN_LEN)
Damien George6942f802015-01-11 17:52:45 +000034
35Q()
Damien George708c0732014-04-27 19:23:46 +010036Q(*)
Damien Georgeeb7bfcb2014-01-04 15:57:35 +000037Q(__build_class__)
38Q(__class__)
39Q(__doc__)
Paul Sokolovsky1d938c92014-02-04 00:46:17 +020040Q(__import__)
Damien Georgeeb7bfcb2014-01-04 15:57:35 +000041Q(__init__)
Paul Sokolovsky13684fd2014-05-18 20:37:18 +030042Q(__new__)
Damien Georgeeb7bfcb2014-01-04 15:57:35 +000043Q(__locals__)
44Q(__main__)
45Q(__module__)
46Q(__name__)
stijne00eeaf2014-11-12 14:57:34 +010047Q(__hash__)
Damien Georgeeb7bfcb2014-01-04 15:57:35 +000048Q(__next__)
49Q(__qualname__)
Paul Sokolovsky13d52df2014-04-11 23:25:35 +030050Q(__path__)
Damien Georgeeb7bfcb2014-01-04 15:57:35 +000051Q(__repl_print__)
Paul Sokolovskyd0f5e612014-07-25 11:00:15 +030052#if MICROPY_PY___FILE__
53Q(__file__)
54#endif
Damien Georgeeb7bfcb2014-01-04 15:57:35 +000055
Damien George09a0c642014-01-30 10:05:33 +000056Q(__bool__)
Paul Sokolovsky036ad762014-04-13 10:39:25 +030057Q(__contains__)
Paul Sokolovsky44307d52014-03-29 04:10:11 +020058Q(__enter__)
59Q(__exit__)
Damien George09a0c642014-01-30 10:05:33 +000060Q(__len__)
Damien George9e6e9352014-03-26 18:37:06 +000061Q(__iter__)
Damien George7c9c6672014-01-25 00:17:36 +000062Q(__getitem__)
Damien George7d0bfbe2014-02-08 19:01:47 +000063Q(__setitem__)
Paul Sokolovsky14de1142014-04-13 23:55:59 +030064Q(__delitem__)
Damien George7c9c6672014-01-25 00:17:36 +000065Q(__add__)
66Q(__sub__)
Paul Sokolovsky51bbf6a2014-03-16 15:16:54 +020067Q(__repr__)
68Q(__str__)
Damien Georgee44d26a2014-03-31 22:57:56 +010069Q(__getattr__)
muxcc849f72014-04-05 15:49:03 +020070Q(__del__)
Paul Sokolovsky755565d2014-04-25 21:15:16 +030071Q(__call__)
Paul Sokolovsky5473f742014-06-08 00:01:46 +030072Q(__lt__)
Damien George779794a2014-08-26 09:31:26 +010073Q(__gt__)
74Q(__eq__)
75Q(__le__)
76Q(__ge__)
Damien George962a5d52015-01-21 00:19:42 +000077Q(__reversed__)
Paul Sokolovsky98c4bc32015-01-30 01:42:49 +020078#if MICROPY_PY_ALL_SPECIAL_METHODS
Paul Sokolovskye06cf892015-02-21 19:35:09 +020079Q(__mul__)
80Q(__truediv__)
81Q(__floordiv__)
Paul Sokolovsky98c4bc32015-01-30 01:42:49 +020082Q(__iadd__)
Paul Sokolovskye06cf892015-02-21 19:35:09 +020083Q(__isub__)
Paul Sokolovsky98c4bc32015-01-30 01:42:49 +020084#endif
Damien George7c9c6672014-01-25 00:17:36 +000085
Damien Georgeeb7bfcb2014-01-04 15:57:35 +000086Q(micropython)
Damien George3417bc22014-05-10 10:36:38 +010087Q(bytecode)
Damien George2ac4af62014-08-15 16:45:41 +010088Q(const)
89
Damien Georgec90f59e2014-09-06 23:06:36 +010090#if MICROPY_EMIT_NATIVE
Damien Georgeeb7bfcb2014-01-04 15:57:35 +000091Q(native)
92Q(viper)
Damien George2ac4af62014-08-15 16:45:41 +010093Q(uint)
Damien Georgee9dac3b2014-09-29 22:10:41 +010094Q(ptr)
95Q(ptr8)
96Q(ptr16)
Damien George2ac4af62014-08-15 16:45:41 +010097#endif
Damien Georgee5f8a772014-04-21 13:33:15 +010098
99#if MICROPY_EMIT_INLINE_THUMB
Damien Georgeeb7bfcb2014-01-04 15:57:35 +0000100Q(asm_thumb)
Damien Georgee5f8a772014-04-21 13:33:15 +0100101Q(label)
102Q(align)
103Q(data)
104#endif
Damien Georgeeb7bfcb2014-01-04 15:57:35 +0000105
Damien George3d615282014-09-17 23:17:26 +0100106Q(builtins)
107
Damien Georgee9906ac2014-01-04 18:44:46 +0000108Q(Ellipsis)
Damien Georgeeb7bfcb2014-01-04 15:57:35 +0000109Q(StopIteration)
110
Damien Georgec5966122014-02-15 16:10:44 +0000111Q(BaseException)
Rachel Dowdall721c55d2014-03-22 15:28:16 +0000112Q(ArithmeticError)
Damien George71c51812014-01-04 20:21:15 +0000113Q(AssertionError)
Damien Georgeeb7bfcb2014-01-04 15:57:35 +0000114Q(AttributeError)
Rachel Dowdall721c55d2014-03-22 15:28:16 +0000115Q(BufferError)
Rachel Dowdall721c55d2014-03-22 15:28:16 +0000116Q(EOFError)
Rachel Dowdall721c55d2014-03-22 15:28:16 +0000117Q(Exception)
118Q(FileExistsError)
119Q(FileNotFoundError)
120Q(FloatingPointError)
Rachel Dowdall721c55d2014-03-22 15:28:16 +0000121Q(GeneratorExit)
Paul Sokolovsky7cd54d72014-02-04 03:33:55 +0200122Q(ImportError)
Damien George9528cd62014-01-15 21:23:31 +0000123Q(IndentationError)
Damien Georgeeb7bfcb2014-01-04 15:57:35 +0000124Q(IndexError)
Damien George124df6f2014-10-25 18:19:55 +0100125Q(KeyboardInterrupt)
Damien Georgeeb7bfcb2014-01-04 15:57:35 +0000126Q(KeyError)
Rachel Dowdall721c55d2014-03-22 15:28:16 +0000127Q(LookupError)
128Q(MemoryError)
Damien Georgeeb7bfcb2014-01-04 15:57:35 +0000129Q(NameError)
Paul Sokolovsky76f06de2014-02-09 13:17:36 +0200130Q(NotImplementedError)
Damien George9528cd62014-01-15 21:23:31 +0000131Q(OSError)
Paul Sokolovsky166bb402014-01-18 12:46:43 +0200132Q(OverflowError)
Rachel Dowdall721c55d2014-03-22 15:28:16 +0000133Q(RuntimeError)
Rachel Dowdall721c55d2014-03-22 15:28:16 +0000134Q(SyntaxError)
Damien George7a4ddd22014-05-24 23:32:19 +0100135Q(SystemExit)
Rachel Dowdall721c55d2014-03-22 15:28:16 +0000136Q(TypeError)
137Q(UnboundLocalError)
Rachel Dowdall721c55d2014-03-22 15:28:16 +0000138Q(ValueError)
Rachel Dowdall300c8bd2014-03-20 22:40:38 +0000139Q(ZeroDivisionError)
Paul Sokolovsky71ebd4b2015-02-23 23:18:36 +0200140#if MICROPY_PY_BUILTINS_STR_UNICODE
141Q(UnicodeError)
142#endif
Damien Georgeeb7bfcb2014-01-04 15:57:35 +0000143
Damien George3ec0a1a2014-03-22 21:31:28 +0000144Q(None)
145Q(False)
146Q(True)
147Q(object)
Rachel Dowdall721c55d2014-03-22 15:28:16 +0000148
Damien Georgea71c83a2014-02-15 11:34:50 +0000149Q(NoneType)
150
Damien Georgeeb7bfcb2014-01-04 15:57:35 +0000151Q(abs)
152Q(all)
153Q(any)
Paul Sokolovsky9512e9e2014-03-25 01:29:09 +0200154Q(args)
Damien Georgedd4f4532014-10-23 13:34:35 +0100155#if MICROPY_PY_ARRAY
Paul Sokolovsky427905c2014-01-18 19:24:47 +0200156Q(array)
Damien Georgedd4f4532014-10-23 13:34:35 +0100157#endif
Damien George897fe0c2014-04-15 22:03:55 +0100158Q(bin)
159Q({:#b})
Damien Georgeeb7bfcb2014-01-04 15:57:35 +0000160Q(bool)
Damien Georgedd4f4532014-10-23 13:34:35 +0100161#if MICROPY_PY_BUILTINS_BYTEARRAY
Paul Sokolovsky427905c2014-01-18 19:24:47 +0200162Q(bytearray)
Damien Georgedd4f4532014-10-23 13:34:35 +0100163#endif
164#if MICROPY_PY_BUILTINS_MEMORYVIEW
165Q(memoryview)
166#endif
Paul Sokolovskya80ff042014-01-20 20:32:50 +0200167Q(bytes)
Damien Georgeeb7bfcb2014-01-04 15:57:35 +0000168Q(callable)
Damien Georgeee3fd462014-05-24 23:03:12 +0100169#if MICROPY_PY_STRUCT
Paul Sokolovskye9db8402014-04-10 03:45:38 +0300170Q(calcsize)
171#endif
Damien Georgeeb7bfcb2014-01-04 15:57:35 +0000172Q(chr)
Damien George64131f32014-02-06 20:31:44 +0000173Q(classmethod)
Paul Sokolovsky48fdaad2014-04-13 10:17:04 +0300174Q(_collections)
Damien Georgef20375e2014-08-12 19:57:52 +0100175#if MICROPY_PY_BUILTINS_COMPLEX
Damien Georgeeb7bfcb2014-01-04 15:57:35 +0000176Q(complex)
Damien Georgef20375e2014-08-12 19:57:52 +0100177Q(real)
178Q(imag)
179#endif
Damien Georgeeb7bfcb2014-01-04 15:57:35 +0000180Q(dict)
Damien George4acb2452014-02-02 22:07:44 +0000181Q(dir)
Damien Georgeeb7bfcb2014-01-04 15:57:35 +0000182Q(divmod)
John R. Lenton9daa7892014-01-14 23:55:01 +0000183Q(enumerate)
Damien Georged02c6d82014-01-15 22:14:03 +0000184Q(eval)
Damien Georgeca476792014-02-03 22:44:10 +0000185Q(exec)
Damien George2a3e2b92014-12-19 13:36:17 +0000186#if MICROPY_PY_BUILTINS_EXECFILE
187Q(execfile)
188#endif
John R. Lentonfca456b2014-01-15 01:37:08 +0000189Q(filter)
Damien George75ec22b2014-08-12 20:16:03 +0100190#if MICROPY_PY_BUILTINS_FLOAT
Damien Georgeeb7bfcb2014-01-04 15:57:35 +0000191Q(float)
Damien George75ec22b2014-08-12 20:16:03 +0100192#endif
Paul Sokolovskya985b452014-04-09 00:40:58 +0300193Q(from_bytes)
Paul Sokolovskye9137b92014-03-26 23:35:13 +0200194Q(getattr)
stijnc1832fd2015-02-14 17:36:59 +0100195Q(setattr)
Paul Sokolovskycc0af3d2014-04-06 01:00:46 +0300196Q(globals)
Paul Sokolovskyff306662014-05-11 19:05:42 +0300197Q(hasattr)
Damien Georgeeb7bfcb2014-01-04 15:57:35 +0000198Q(hash)
Damien George58051112014-04-15 12:42:52 +0100199Q(hex)
Damien Georgeb013aea2014-04-15 12:50:21 +0100200Q(%#x)
xbe0ebf8532014-02-01 19:00:41 -0800201Q(id)
Damien Georgeeb7bfcb2014-01-04 15:57:35 +0000202Q(int)
Damien George004cdce2014-01-09 21:43:51 +0000203Q(isinstance)
204Q(issubclass)
Damien Georgeeb7bfcb2014-01-04 15:57:35 +0000205Q(iter)
206Q(len)
207Q(list)
Paul Sokolovskycc0af3d2014-04-06 01:00:46 +0300208Q(locals)
John R. Lenton39b174e2014-01-15 01:10:09 +0000209Q(map)
Damien Georgeeb7bfcb2014-01-04 15:57:35 +0000210Q(max)
211Q(min)
Paul Sokolovskyd08fd682014-02-27 22:22:04 +0200212Q(namedtuple)
Damien Georgeeb7bfcb2014-01-04 15:57:35 +0000213Q(next)
Damien George897fe0c2014-04-15 22:03:55 +0100214Q(oct)
215Q(%#o)
Damien George27e735f2014-04-05 23:02:23 +0100216Q(open)
Damien Georgeeb7bfcb2014-01-04 15:57:35 +0000217Q(ord)
Paul Sokolovskye11b17c2014-02-05 00:47:06 +0200218Q(path)
Damien Georgeeb7bfcb2014-01-04 15:57:35 +0000219Q(pow)
220Q(print)
221Q(range)
Paul Sokolovsky27f5bdd2014-04-26 21:15:56 +0300222Q(read)
Damien Georgee2fb2ba2014-01-15 21:40:48 +0000223Q(repr)
Damien George4c03b3a2014-08-12 18:33:40 +0100224Q(reversed)
Damien George1559a972014-10-31 11:28:50 +0000225Q(round)
John R. Lenton5c768392014-01-13 05:12:50 +0000226Q(sorted)
Damien George64131f32014-02-06 20:31:44 +0000227Q(staticmethod)
Damien Georgeeb7bfcb2014-01-04 15:57:35 +0000228Q(sum)
Damien George35e2a4e2014-02-05 00:51:47 +0000229Q(super)
Paul Sokolovsky36c44992014-01-13 19:20:46 +0200230Q(str)
Paul Sokolovsky0c59db12014-02-04 07:55:10 +0200231Q(sys)
Paul Sokolovskya985b452014-04-09 00:40:58 +0300232Q(to_bytes)
Damien George71c51812014-01-04 20:21:15 +0000233Q(tuple)
Damien Georgeeb7bfcb2014-01-04 15:57:35 +0000234Q(type)
Paul Sokolovsky9512e9e2014-03-25 01:29:09 +0200235Q(value)
Paul Sokolovsky27f5bdd2014-04-26 21:15:56 +0300236Q(write)
John R. Lenton07205ec2014-01-13 02:31:00 +0000237Q(zip)
Damien Georgeeb7bfcb2014-01-04 15:57:35 +0000238
Damien Georgec9fc6202014-10-25 21:59:14 +0100239#if MICROPY_PY_BUILTINS_COMPILE
240Q(compile)
241Q(code)
242Q(single)
243#endif
244
Damien George48815662014-04-02 10:34:44 +0100245Q(sep)
246Q(end)
247
Damien Georgec12b2212014-03-26 20:15:40 +0000248Q(clear)
249Q(copy)
250Q(fromkeys)
251Q(get)
252Q(items)
253Q(keys)
254Q(pop)
255Q(popitem)
256Q(setdefault)
257Q(update)
258Q(values)
Damien Georgeeb7bfcb2014-01-04 15:57:35 +0000259Q(append)
Damien Georgec12b2212014-03-26 20:15:40 +0000260Q(close)
261Q(send)
262Q(throw)
263Q(count)
264Q(extend)
265Q(index)
266Q(remove)
267Q(insert)
Damien Georgeeb7bfcb2014-01-04 15:57:35 +0000268Q(pop)
269Q(sort)
270Q(join)
xbe7b0f39f2014-01-08 14:23:45 -0800271Q(strip)
Paul Sokolovsky88107842014-04-26 06:20:08 +0300272Q(lstrip)
273Q(rstrip)
Damien Georgeeb7bfcb2014-01-04 15:57:35 +0000274Q(format)
Damien George7d0bfbe2014-02-08 19:01:47 +0000275Q(key)
276Q(reverse)
Damien Georgec12b2212014-03-26 20:15:40 +0000277Q(add)
278Q(clear)
279Q(copy)
Damien Georgec12b2212014-03-26 20:15:40 +0000280Q(pop)
281Q(remove)
Damien Georgec12b2212014-03-26 20:15:40 +0000282Q(find)
283Q(rfind)
xbe3d9a39e2014-04-08 11:42:19 -0700284Q(rindex)
Damien Georgec12b2212014-03-26 20:15:40 +0000285Q(split)
Paul Sokolovsky2a273652014-05-13 08:07:08 +0300286Q(rsplit)
Damien Georgec12b2212014-03-26 20:15:40 +0000287Q(startswith)
Paul Sokolovskyd098c6b2014-05-24 22:46:51 +0300288Q(endswith)
Damien Georgec12b2212014-03-26 20:15:40 +0000289Q(replace)
290Q(partition)
291Q(rpartition)
Paul Sokolovsky69135212014-05-10 19:47:41 +0300292Q(lower)
293Q(upper)
Kim Bautersa3f4b832014-05-31 07:30:03 +0100294Q(isspace)
295Q(isalpha)
296Q(isdigit)
297Q(isupper)
298Q(islower)
Damien George491cbd62014-05-06 16:38:54 +0000299Q(iterable)
300Q(start)
Paul Sokolovskyab5d0822014-01-24 00:22:00 +0200301
Damien Georgea71c83a2014-02-15 11:34:50 +0000302Q(bound_method)
303Q(closure)
304Q(dict_view)
305Q(function)
306Q(generator)
307Q(iterator)
308Q(module)
309Q(slice)
310
Damien George75ec22b2014-08-12 20:16:03 +0100311#if MICROPY_PY_BUILTINS_SET
312Q(discard)
313Q(difference)
314Q(difference_update)
315Q(intersection)
316Q(intersection_update)
317Q(isdisjoint)
318Q(issubset)
319Q(issuperset)
320Q(set)
321Q(symmetric_difference)
322Q(symmetric_difference_update)
323Q(union)
324Q(update)
325#endif
326
Damien Georgefb510b32014-06-01 13:32:54 +0100327#if MICROPY_PY_BUILTINS_FROZENSET
Paul Sokolovskyb181b582014-05-10 16:02:17 +0300328Q(frozenset)
329#endif
330
Damien Georgeee3fd462014-05-24 23:03:12 +0100331#if MICROPY_PY_MATH || MICROPY_PY_CMATH
Damien George0c36da02014-03-08 15:24:39 +0000332Q(math)
Damien Georgea9256392014-03-20 16:39:22 +0000333Q(e)
Damien George0c36da02014-03-08 15:24:39 +0000334Q(pi)
335Q(sqrt)
336Q(pow)
337Q(exp)
Damien George8854e1f2014-03-12 21:31:41 +0000338Q(expm1)
Damien George0c36da02014-03-08 15:24:39 +0000339Q(log)
340Q(log2)
341Q(log10)
342Q(cosh)
343Q(sinh)
344Q(tanh)
345Q(acosh)
346Q(asinh)
347Q(atanh)
348Q(cos)
349Q(sin)
350Q(tan)
351Q(acos)
352Q(asin)
353Q(atan)
354Q(atan2)
Rachel Dowdall5a14a1d2014-03-20 21:26:51 +0000355Q(ceil)
356Q(copysign)
357Q(fabs)
Rachel Dowdall5a14a1d2014-03-20 21:26:51 +0000358Q(fmod)
Rachel Dowdall249b9c72014-03-22 14:39:33 +0000359Q(floor)
Rachel Dowdall5a14a1d2014-03-20 21:26:51 +0000360Q(isfinite)
361Q(isinf)
362Q(isnan)
363Q(trunc)
Rachel Dowdall249b9c72014-03-22 14:39:33 +0000364Q(modf)
365Q(frexp)
366Q(ldexp)
367Q(degrees)
368Q(radians)
Damien George5cbeace2015-02-22 14:48:18 +0000369#if MICROPY_PY_MATH_SPECIAL_FUNCTIONS
Rachel Dowdall249b9c72014-03-22 14:39:33 +0000370Q(erf)
371Q(erfc)
372Q(gamma)
373Q(lgamma)
Damien Georgedbdfee12014-04-17 17:11:03 +0100374#endif
Damien George5cbeace2015-02-22 14:48:18 +0000375#endif
Damien Georgedbdfee12014-04-17 17:11:03 +0100376
Damien Georgeee3fd462014-05-24 23:03:12 +0100377#if MICROPY_PY_CMATH
Damien Georgedbdfee12014-04-17 17:11:03 +0100378Q(cmath)
379Q(phase)
380Q(polar)
381Q(rect)
382#endif
Damien George0c36da02014-03-08 15:24:39 +0000383
Damien George89deec02015-01-09 20:12:54 +0000384#if MICROPY_PY_MICROPYTHON_MEM_INFO
Damien George75ec22b2014-08-12 20:16:03 +0100385#if MICROPY_MEM_STATS
Damien George0c36da02014-03-08 15:24:39 +0000386Q(mem_total)
387Q(mem_current)
388Q(mem_peak)
Damien George89deec02015-01-09 20:12:54 +0000389#endif
Paul Sokolovsky6e8ff9c2014-12-01 20:41:56 +0200390Q(mem_info)
391Q(qstr_info)
Damien George75ec22b2014-08-12 20:16:03 +0100392#endif
Damien George0c36da02014-03-08 15:24:39 +0000393
Dave Hylands5b7fd202014-07-01 23:46:53 -0700394#if MICROPY_ENABLE_EMERGENCY_EXCEPTION_BUF && (MICROPY_EMERGENCY_EXCEPTION_BUF_SIZE == 0)
395Q(alloc_emergency_exception_buf)
396#endif
Paul Sokolovskye8432b32015-02-15 22:34:31 +0300397Q(maximum recursion depth exceeded)
Dave Hylands5b7fd202014-07-01 23:46:53 -0700398
Paul Sokolovskyab5d0822014-01-24 00:22:00 +0200399Q(<module>)
400Q(<lambda>)
401Q(<listcomp>)
402Q(<dictcomp>)
403Q(<setcomp>)
404Q(<genexpr>)
Damien Georgeb829b5c2014-01-25 13:51:19 +0000405Q(<string>)
Paul Sokolovskyab5d0822014-01-24 00:22:00 +0200406Q(<stdin>)
Paul Sokolovsky73b70272014-04-13 05:28:46 +0300407
408#if MICROPY_CPYTHON_COMPAT
409Q(encode)
410Q(decode)
411Q(utf-8)
412#endif
Paul Sokolovskya3e50ea2014-04-13 06:55:24 +0300413
Damien Georgeee3fd462014-05-24 23:03:12 +0100414#if MICROPY_PY_SYS
Paul Sokolovskya3e50ea2014-04-13 06:55:24 +0300415Q(argv)
Paul Sokolovsky978d2c02014-04-13 09:53:52 +0300416Q(byteorder)
417Q(big)
Paul Sokolovskyd99e9082014-05-10 16:50:45 +0300418Q(exit)
Paul Sokolovsky978d2c02014-04-13 09:53:52 +0300419Q(little)
Paul Sokolovskyb9b93542014-06-07 23:40:04 +0300420#ifdef MICROPY_PY_SYS_PLATFORM
421Q(platform)
422#endif
Paul Sokolovskya3e50ea2014-04-13 06:55:24 +0300423Q(stdin)
424Q(stdout)
425Q(stderr)
Paul Sokolovskybbae42d2014-04-14 01:46:45 +0300426Q(version)
Paul Sokolovskybaaaf652014-04-13 09:46:58 +0300427Q(version_info)
Paul Sokolovsky4e0eeeb2014-07-03 16:50:11 +0300428#if MICROPY_PY_SYS_MAXSIZE
429Q(maxsize)
430#endif
Paul Sokolovsky46c3ab22014-12-06 14:29:09 +0200431Q(print_exception)
Paul Sokolovskya3e50ea2014-04-13 06:55:24 +0300432#endif
Damien George777b0f32014-04-13 18:59:45 +0100433
Damien Georgeee3fd462014-05-24 23:03:12 +0100434#if MICROPY_PY_STRUCT
Paul Sokolovsky62044602014-04-19 03:13:15 +0300435Q(struct)
436Q(pack)
437Q(unpack)
438#endif
439
Paul Sokolovsky82158472014-06-28 03:03:47 +0300440#if MICROPY_PY_UCTYPES
441Q(uctypes)
442Q(sizeof)
443Q(addressof)
444Q(bytes_at)
445Q(bytearray_at)
446
447Q(NATIVE)
448Q(LITTLE_ENDIAN)
449Q(BIG_ENDIAN)
450
451Q(VOID)
452
453Q(UINT8)
454Q(INT8)
455Q(UINT16)
456Q(INT16)
457Q(UINT32)
458Q(INT32)
459Q(UINT64)
460Q(INT64)
461
462Q(BFUINT8)
463Q(BFINT8)
464Q(BFUINT16)
465Q(BFINT16)
466Q(BFUINT32)
467Q(BFINT32)
468
469Q(FLOAT32)
470Q(FLOAT64)
471
472Q(ARRAY)
473Q(PTR)
474//Q(BITFIELD)
Paul Sokolovsky2097c8b2014-07-11 00:06:36 +0300475
476Q(BF_POS)
477Q(BF_LEN)
Paul Sokolovsky82158472014-06-28 03:03:47 +0300478#endif
479
Damien Georgeee3fd462014-05-24 23:03:12 +0100480#if MICROPY_PY_IO
Paul Sokolovskyfbdf2f12014-06-12 01:22:25 +0300481Q(_io)
Paul Sokolovsky27f5bdd2014-04-26 21:15:56 +0300482Q(readall)
Paul Sokolovsky1a55b6a2014-10-18 22:44:07 +0300483Q(readinto)
Paul Sokolovsky27f5bdd2014-04-26 21:15:56 +0300484Q(readline)
Damien Georged5f5b2f2014-05-03 22:01:32 +0100485Q(readlines)
Paul Sokolovsky838eb1f2014-11-17 00:16:14 +0200486Q(seek)
Paul Sokolovsky9e296662014-05-19 20:59:13 +0300487Q(FileIO)
488Q(TextIOWrapper)
Paul Sokolovskycb9dc082014-04-26 20:26:14 +0300489Q(StringIO)
490Q(BytesIO)
491Q(getvalue)
Paul Sokolovskycb66f412014-07-13 23:07:42 +0300492Q(file)
stijn2fe4cf72014-10-04 08:51:33 +0200493Q(mode)
494Q(r)
495Q(encoding)
Paul Sokolovskycb9dc082014-04-26 20:26:14 +0300496#endif
497
Damien Georgeee3fd462014-05-24 23:03:12 +0100498#if MICROPY_PY_GC
Paul Sokolovskyf9e54e02014-05-06 02:16:43 +0300499Q(gc)
500Q(collect)
Damien George8c1c7482014-05-08 23:04:49 +0100501Q(disable)
502Q(enable)
Damien George109c1de2014-10-31 21:30:46 +0000503Q(isenabled)
Paul Sokolovsky5aa740c2014-06-24 21:23:40 +0300504Q(mem_free)
505Q(mem_alloc)
Paul Sokolovskyf9e54e02014-05-06 02:16:43 +0300506#endif
507
Damien Georgefb510b32014-06-01 13:32:54 +0100508#if MICROPY_PY_BUILTINS_PROPERTY
Damien George777b0f32014-04-13 18:59:45 +0100509Q(property)
510Q(getter)
511Q(setter)
512Q(deleter)
513#endif
Paul Sokolovsky510296f2014-08-08 22:51:40 +0300514
Paul Sokolovsky34162872014-10-12 08:16:34 -0700515#if MICROPY_PY_UZLIB
516Q(uzlib)
517Q(decompress)
518#endif
519
Damien George612045f2014-09-17 22:56:34 +0100520#if MICROPY_PY_UJSON
521Q(ujson)
522Q(dumps)
Damien George89e46572014-09-21 11:40:01 +0100523Q(loads)
Damien George612045f2014-09-17 22:56:34 +0100524#endif
Paul Sokolovskyc71e0452014-09-12 18:48:07 +0300525
526#if MICROPY_PY_URE
527Q(ure)
528Q(compile)
529Q(match)
530Q(search)
531Q(group)
532Q(DEBUG)
533#endif
Damien Georgef5d69792014-10-22 17:37:18 +0000534
535#if MICROPY_PY_UHEAPQ
536Q(uheapq)
537Q(heappush)
538Q(heappop)
539Q(heapify)
540#endif
Paul Sokolovskyf4b19c82014-11-22 01:19:13 +0200541
542#if MICROPY_PY_UHASHLIB
543Q(uhashlib)
544Q(update)
545Q(digest)
546Q(hexdigest)
547Q(sha256)
548#endif
Paul Sokolovskybfdc2052014-11-29 06:19:30 +0200549
550#if MICROPY_PY_UBINASCII
551Q(ubinascii)
552Q(hexlify)
553#endif