<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/extmod, 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>2016-01-26T15:27:00+00:00</updated>
<entry>
<title>extmod/modurandom: Add some extra random functions.</title>
<updated>2016-01-26T15:27:00+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2016-01-22T16:19:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=a53af6c87540c41fdf34211ea99ee794cae6d160'/>
<id>urn:sha1:a53af6c87540c41fdf34211ea99ee794cae6d160</id>
<content type='text'>
Functions added are:
- randint
- randrange
- choice
- random
- uniform

They are enabled with configuration variable
MICROPY_PY_URANDOM_EXTRA_FUNCS, which is disabled by default.  It is
enabled for unix coverage build and stmhal.
</content>
</entry>
<entry>
<title>extmod/moduhashlib: Use MICROPY_PY_UHASHLIB_SHA1 config define.</title>
<updated>2016-01-24T22:49:00+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2016-01-24T22:48:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=f5c42dd9d199aa61b16ad54a73531eefbb0be3eb'/>
<id>urn:sha1:f5c42dd9d199aa61b16ad54a73531eefbb0be3eb</id>
<content type='text'>
</content>
</entry>
<entry>
<title>extmod/moduhashlib: Add support for SHA1 (based on axTLS).</title>
<updated>2016-01-24T18:55:09+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2016-01-24T18:52:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=ee1656e148f81d48989393d7ed579e2eb5d63b1b'/>
<id>urn:sha1:ee1656e148f81d48989393d7ed579e2eb5d63b1b</id>
<content type='text'>
SHA1 is used in a number of protocols and algorithm originated 5 years ago
or so, in other words, it's in "wide use", and only newer protocols use
SHA2.

The implementation depends on axTLS enabled. TODO: Make separate config
option specifically for sha1().
</content>
</entry>
<entry>
<title>extmod/modurandom: Make yasmarang() function static.</title>
<updated>2016-01-17T12:12:33+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2016-01-17T11:13:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=ea495d6aa668ada6a3b3cb7e407ae2e2bb1dd46f'/>
<id>urn:sha1:ea495d6aa668ada6a3b3cb7e407ae2e2bb1dd46f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>extmod/modurandom: Add "urandom" module.</title>
<updated>2016-01-17T10:13:01+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2016-01-17T10:10:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=a58a91eb04c50daafb31228a79f6752374338c5e'/>
<id>urn:sha1:a58a91eb04c50daafb31228a79f6752374338c5e</id>
<content type='text'>
Seedable and reproducible pseudo-random number generator. Implemented
functions are getrandbits(n) (n &lt;= 32) and seed().

The algorithm used is Yasmarang by Ilya Levin:
http://www.literatecode.com/yasmarang
</content>
</entry>
<entry>
<title>py: Change first arg of type.make_new from mp_obj_t to mp_obj_type_t*.</title>
<updated>2016-01-11T00:49:27+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2016-01-03T15:55:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=5b3f0b7f39bd67cc9182993c288f09f67a0890df'/>
<id>urn:sha1:5b3f0b7f39bd67cc9182993c288f09f67a0890df</id>
<content type='text'>
The first argument to the type.make_new method is naturally a uPy type,
and all uses of this argument cast it directly to a pointer to a type
structure.  So it makes sense to just have it a pointer to a type from
the very beginning (and a const pointer at that).  This patch makes
such a change, and removes all unnecessary casting to/from mp_obj_t.
</content>
</entry>
<entry>
<title>py: Change type signature of builtin funs that take variable or kw args.</title>
<updated>2016-01-11T00:49:27+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2016-01-03T14:21:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=4b72b3a133ea87a1ef8b964508dc25c551ccf093'/>
<id>urn:sha1:4b72b3a133ea87a1ef8b964508dc25c551ccf093</id>
<content type='text'>
With this patch the n_args parameter is changed type from mp_uint_t to
size_t.
</content>
</entry>
<entry>
<title>py: Change type of .make_new and .call args: mp_uint_t becomes size_t.</title>
<updated>2016-01-11T00:48:41+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2016-01-03T09:59:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=a0c97814dfcb0debbde8be99539e3d5ca2334e54'/>
<id>urn:sha1:a0c97814dfcb0debbde8be99539e3d5ca2334e54</id>
<content type='text'>
This patch changes the type signature of .make_new and .call object method
slots to use size_t for n_args and n_kw (was mp_uint_t.  Makes code more
efficient when mp_uint_t is larger than a machine word.  Doesn't affect
ports when size_t and mp_uint_t have the same size.
</content>
</entry>
<entry>
<title>extmod: Fix uctypes size calculation for bitfields</title>
<updated>2016-01-10T21:31:26+00:00</updated>
<author>
<name>Dave Hylands</name>
<email>dhylands@gmail.com</email>
</author>
<published>2016-01-03T18:38:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=66d0c1052a4623ef91afe4c7b883b7f37a68fa2b'/>
<id>urn:sha1:66d0c1052a4623ef91afe4c7b883b7f37a68fa2b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>uctypes: Implement assignment for scalar array</title>
<updated>2016-01-03T18:23:20+00:00</updated>
<author>
<name>Antonin ENFRUN</name>
<email>antonin.e@me.com</email>
</author>
<published>2015-12-27T19:16:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=26ed00118b48ccf9fca1308015e269f1fc400a79'/>
<id>urn:sha1:26ed00118b48ccf9fca1308015e269f1fc400a79</id>
<content type='text'>
</content>
</entry>
</feed>
