<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/py/makeqstrdata.py, branch v1.6</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.6</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.6'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2015-10-11T08:09:57+00:00</updated>
<entry>
<title>py/makeqstrdata.py: Catch and report case of empty input file.</title>
<updated>2015-10-11T08:09:57+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2015-10-11T08:09:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=53ca6ae1f362da99b5913505a53904d22f460c63'/>
<id>urn:sha1:53ca6ae1f362da99b5913505a53904d22f460c63</id>
<content type='text'>
The usual cause would be that a cross-compiler for a port is not in PATH.
</content>
</entry>
<entry>
<title>stmhal: add option to query for the current usb mode</title>
<updated>2015-09-03T22:30:43+00:00</updated>
<author>
<name>Tony Abboud</name>
<email>tdabboud@hotmail.com</email>
</author>
<published>2015-08-30T21:20:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=8d8fdcb4bec5024503b636bcdbad244bef4e6576'/>
<id>urn:sha1:8d8fdcb4bec5024503b636bcdbad244bef4e6576</id>
<content type='text'>
Fetch the current usb mode and return a string representation when
pyb.usb_mode() is called with no args. The possible string values are interned
as qstr's. None will be returned if an incorrect mode is set.
</content>
</entry>
<entry>
<title>makeqstrdata.py: Typo fix in comment.</title>
<updated>2015-07-31T11:58:14+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2015-07-31T11:57:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=3a2fb201a52367286d25bede4612c73b6a1cd4b9'/>
<id>urn:sha1:3a2fb201a52367286d25bede4612c73b6a1cd4b9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py: Make qstr hash size configurable, defaults to 2 bytes.</title>
<updated>2015-07-20T11:03:13+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-07-20T11:03:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=c3bd9415cc8e6ba3619fe4b7a2bdac20260b0236'/>
<id>urn:sha1:c3bd9415cc8e6ba3619fe4b7a2bdac20260b0236</id>
<content type='text'>
This patch makes configurable, via MICROPY_QSTR_BYTES_IN_HASH, the
number of bytes used for a qstr hash.  It was originally fixed at 2
bytes, and now defaults to 2 bytes.  Setting it to 1 byte will save
ROM and RAM at a small expense of hash collisions.
</content>
</entry>
<entry>
<title>py: Get makeqstrdata.py and makeversionhdr.py running under Python 2.6.</title>
<updated>2015-05-30T22:11:16+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-05-30T22:11:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=26b512ea1bcc8035f8f5312b2065c85a639c02ae'/>
<id>urn:sha1:26b512ea1bcc8035f8f5312b2065c85a639c02ae</id>
<content type='text'>
These scripts should run under as wide a range of Python versions as
possible.
</content>
</entry>
<entry>
<title>makeqstrdata.py: Add support for strings with backslash escapes.</title>
<updated>2015-04-01T22:10:11+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2015-04-01T22:09:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=f88eec0de24277e8713ebdfe34e1e7b852a25731'/>
<id>urn:sha1:f88eec0de24277e8713ebdfe34e1e7b852a25731</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py/makeqstrdata.py: Make it work again with both Python2 and Python3.</title>
<updated>2015-01-11T22:40:38+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-01-11T22:40:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=99ab64ffd4a85e3e97eab2c9db41fa46ca6e01fc'/>
<id>urn:sha1:99ab64ffd4a85e3e97eab2c9db41fa46ca6e01fc</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py: Add MICROPY_QSTR_BYTES_IN_LEN config option, defaulting to 1.</title>
<updated>2015-01-11T22:27:30+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-01-11T22:27:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=95836f8439b9f1ca0b6ff20f56a03253aa9ba836'/>
<id>urn:sha1:95836f8439b9f1ca0b6ff20f56a03253aa9ba836</id>
<content type='text'>
This new config option sets how many fixed-number-of-bytes to use to
store the length of each qstr.  Previously this was hard coded to 2,
but, as per issue #1056, this is considered overkill since no-one
needs identifiers longer than 255 bytes.

With this patch the number of bytes for the length is configurable, and
defaults to 1 byte.  The configuration option filters through to the
makeqstrdata.py script.

Code size savings going from 2 to 1 byte:
- unix x64 down by 592 bytes
- stmhal down by 1148 bytes
- bare-arm down by 284 bytes

Also has RAM savings, and will be slightly more efficient in execution.
</content>
</entry>
<entry>
<title>py: Add qstr cfg capability; generate QSTR_NULL and QSTR_ from script.</title>
<updated>2015-01-11T22:06:53+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-01-11T17:52:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=6942f80a8feb521ff4dc2b457fa5cb3d039bee54'/>
<id>urn:sha1:6942f80a8feb521ff4dc2b457fa5cb3d039bee54</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py/makeqstrdata.py: Add more allowed qstr characters; escape quot.</title>
<updated>2015-01-11T14:16:24+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-01-11T14:16:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=56e1f99ca1412a580eb3da5622cec5e66d9063d0'/>
<id>urn:sha1:56e1f99ca1412a580eb3da5622cec5e66d9063d0</id>
<content type='text'>
</content>
</entry>
</feed>
