44 Commits (f7ddc9416622493e6602dabf573b33b249756f8b)

Author SHA1 Message Date
Josh Lloyd 7d58a197cf py: Rename MP_QSTR_NULL to MP_QSTRnull to avoid intern collisions. 5 years ago
Paul m. p. P 154062d9cb py/makeqstrdata.py: Allow using \r\n as a qstr if a port requires it. 5 years ago
Damien George 4f0931b21f py/persistentcode: Define static qstr set to reduce size of mpy files. 6 years ago
Damien George 3678a6bdc6 py/modbuiltins: Make built-in dir support the __dir__ special method. 7 years ago
Paul Sokolovsky 9956fd0710 py/objtype: Fit qstrs for special methods in byte type. 7 years ago
Damien George f127bef3e4 py/makeqstrdata.py: Compute the qstr hash from bytes, not characters. 8 years ago
Damien George 202d5acd06 py/makeqstrdata.py: Allow to have double-quote characters in qstrs. 9 years ago
Damien George a649d72606 py/makeqstrdata: Add special case to handle \n qstr. 9 years ago
Damien George 2243d68345 py/makeqstrdata: Reinstate Python2 compatibility. 9 years ago
Damien George 49bb04ee64 py/makeqstrdata: Fix rendering of qstrs that have non-printable ASCII. 9 years ago
Damien George f30b6f0af5 py/makeqstrdata: Add more names for escaped chars and esc non-printable. 9 years ago
Damien George 594fa73411 py/makeqstrdata: Factor out some code to functions that can be reused. 9 years ago
Paul Sokolovsky 53ca6ae1f3 py/makeqstrdata.py: Catch and report case of empty input file. 9 years ago
Tony Abboud 8d8fdcb4be stmhal: add option to query for the current usb mode 9 years ago
Paul Sokolovsky 3a2fb201a5 makeqstrdata.py: Typo fix in comment. 9 years ago
Damien George c3bd9415cc py: Make qstr hash size configurable, defaults to 2 bytes. 9 years ago
Damien George 26b512ea1b py: Get makeqstrdata.py and makeversionhdr.py running under Python 2.6. 10 years ago
Paul Sokolovsky f88eec0de2 makeqstrdata.py: Add support for strings with backslash escapes. 10 years ago
Damien George 99ab64ffd4 py/makeqstrdata.py: Make it work again with both Python2 and Python3. 10 years ago
Damien George 95836f8439 py: Add MICROPY_QSTR_BYTES_IN_LEN config option, defaulting to 1. 10 years ago
Damien George 6942f80a8f py: Add qstr cfg capability; generate QSTR_NULL and QSTR_ from script. 10 years ago
Damien George 56e1f99ca1 py/makeqstrdata.py: Add more allowed qstr characters; escape quot. 10 years ago
Damien George e191d42188 py: Use % str formatting instead of {} in makeqstrdata.py. 10 years ago
Chris Angelico de09caaa37 Bring the C and Python compute_hash functions into consistency 11 years ago
stijn 1dc7f0427b More relaxed parsing of preprocessed qstr header 11 years ago
Damien George 708c073250 py: Add '*' qstr for 'import *'; use blank qstr for comprehension arg. 11 years ago
Damien George 897fe0c0d0 py: Add builtin functions bin and oct, and some tests for them. 11 years ago
Damien George b013aea809 py: Fix builtin hex to print prefix. 11 years ago
Damien George 5805111732 py: Add hex builtin function. 11 years ago
Damien George 3683789207 py: Clean up and add comments to makeqstrdata. 11 years ago
Damien George 5bb7d99175 py: Modify makeqstrdata to recognise better the output of CPP. 11 years ago
Paul Sokolovsky 73b7027b83 objstr: Add str.encode() and bytes.decode() methods. 11 years ago
Paul Sokolovsky a925cb54f1 py: Preprocess qstrdefs.h before feeding to makeqstrdata.py. 11 years ago
Paul Sokolovsky 6ea0e928d8 Revert "makeqstrdata.py: Add support for conditionally defined qstrs." 11 years ago
Paul Sokolovsky acb133d1b1 makeqstrdata.py: Add support for conditionally defined qstrs. 11 years ago
Damien George 6e628c49ca py: Replace naive and teribble hash function with djb2. 11 years ago
Dave Hylands 0308f964a0 Fix makeqstrdata.py to work in Python 2.7 11 years ago
Damien George fdf0da5436 makeqstrdata: print error to stderr. 11 years ago
Paul Sokolovsky 4aee119f94 stm: Initialize sys.path with ["0:/", "0:/src", "0:/lib"]. 11 years ago
Damien George a71c83a1d1 Change mp_obj_type_t.name from const char * to qstr. 11 years ago
Damien George 1976baeeb7 Retain file order of qstr definitions. 11 years ago
Paul Sokolovsky ab5d08280b Allow qstr's with non-ident chars, construct good identifier for them. 11 years ago
Dave Hylands 7a996b1f65 Fix malformed generated file when using python 2.7 11 years ago
Damien George 55baff4c9b Revamp qstrs: they now include length and hash. 11 years ago