<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/py/makeqstrdata.py, branch v1.4</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.4</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.4'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2015-01-11T22:40:38+00:00</updated>
<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>
<entry>
<title>py: Use % str formatting instead of {} in makeqstrdata.py.</title>
<updated>2014-09-05T12:16:19+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-09-05T12:16:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=e191d421885ef74be1770db0f02469cc85dbfc02'/>
<id>urn:sha1:e191d421885ef74be1770db0f02469cc85dbfc02</id>
<content type='text'>
Script is equivalent, but now also runs under ancient Python 2.6.
Goes part way to addressing issue #847.
</content>
</entry>
<entry>
<title>Bring the C and Python compute_hash functions into consistency</title>
<updated>2014-06-06T21:06:18+00:00</updated>
<author>
<name>Chris Angelico</name>
<email>rosuav@gmail.com</email>
</author>
<published>2014-06-06T20:55:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=de09caaa37b1b575660d2f9a22527325662afc41'/>
<id>urn:sha1:de09caaa37b1b575660d2f9a22527325662afc41</id>
<content type='text'>
</content>
</entry>
<entry>
<title>More relaxed parsing of preprocessed qstr header</title>
<updated>2014-05-03T08:26:31+00:00</updated>
<author>
<name>stijn</name>
<email>stinos@zoho.com</email>
</author>
<published>2014-05-02T19:10:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=1dc7f0427b60851593b84ca8cffd1adb5f7e0510'/>
<id>urn:sha1:1dc7f0427b60851593b84ca8cffd1adb5f7e0510</id>
<content type='text'>
The original parsing would error out on any C declarations that are not typedefs
or extern variables. This limits what can go in mpconfig.h and mpconfigport.h,
as they are included in qstr.h. For instance even a function declaration would be
rejected and including system headers is a complete no-go.
That seems too limiting for a global config header, so makeqstrdata now
ignores everything that does not match a qstr definition.
</content>
</entry>
<entry>
<title>py: Add '*' qstr for 'import *'; use blank qstr for comprehension arg.</title>
<updated>2014-04-27T18:23:46+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-04-27T18:23:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=708c07325007148d8e553b20df3f9110cedb58ab'/>
<id>urn:sha1:708c07325007148d8e553b20df3f9110cedb58ab</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py: Add builtin functions bin and oct, and some tests for them.</title>
<updated>2014-04-15T21:03:55+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-04-15T21:03:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=897fe0c0d0e29875cfa32939237c9a6255c5d044'/>
<id>urn:sha1:897fe0c0d0e29875cfa32939237c9a6255c5d044</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py: Fix builtin hex to print prefix.</title>
<updated>2014-04-15T11:50:21+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-04-15T11:50:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=b013aea80927ae85461f382c601f8ac40c06497a'/>
<id>urn:sha1:b013aea80927ae85461f382c601f8ac40c06497a</id>
<content type='text'>
I was too hasty.  Still a one-liner though.
</content>
</entry>
</feed>
