<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/tests/basics, branch v1.3.9</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.3.9</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.3.9'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2015-01-21T00:19:42+00:00</updated>
<entry>
<title>py: Implement __reversed__ slot.</title>
<updated>2015-01-21T00:19:42+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-01-21T00:19:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=962a5d50c94f01ca8dc7d46fe568535d713d59d0'/>
<id>urn:sha1:962a5d50c94f01ca8dc7d46fe568535d713d59d0</id>
<content type='text'>
Addresses issue #1073.
</content>
</entry>
<entry>
<title>py: Reluctantly add an extra pass to bytecode compiler.</title>
<updated>2015-01-14T00:20:28+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-01-14T00:20:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=1e1779eacf4da5cd8699bee26a02eed4eda10101'/>
<id>urn:sha1:1e1779eacf4da5cd8699bee26a02eed4eda10101</id>
<content type='text'>
Bytecode also needs a pass to compute the stack size.  This is because
the state size of the bytecode function is encoded as a variable uint,
so we must know the value of this uint before we encode it (otherwise
the size of the generated code changes from one pass to the next).

Having an entire pass for this seems wasteful (in time).  Alternative is
to allocate fixed space for the state size (would need 3-4 bytes to be
general, when 1 byte is usually sufficient) which uses a bit of extra
RAM per bytecode function, and makes the code less elegant in places
where this uint is encoded/decoded.

So, for now, opt for an extra pass.
</content>
</entry>
<entry>
<title>py: Never intern data of large string/bytes object; add relevant tests.</title>
<updated>2015-01-13T16:21:23+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-01-13T16:21:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=4c81ba8015238a343593468aa5173440fd392e32'/>
<id>urn:sha1:4c81ba8015238a343593468aa5173440fd392e32</id>
<content type='text'>
Previously to this patch all constant string/bytes objects were
interned by the compiler, and this lead to crashes when the qstr was too
long (noticeable now that qstr length storage defaults to 1 byte).

With this patch, long string/bytes objects are never interned, and are
referenced directly as constant objects within generated code using
load_const_obj.
</content>
</entry>
<entry>
<title>py: Implement fallback for equality check for all types.</title>
<updated>2015-01-11T15:13:18+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-01-11T15:13:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=c38dc3ccc76d1a9bf867704f43ea5d15da3fea7b'/>
<id>urn:sha1:c38dc3ccc76d1a9bf867704f43ea5d15da3fea7b</id>
<content type='text'>
Return "not equal" for objects that don't implement equality check.
This is as per Python specs.
</content>
</entry>
<entry>
<title>tests: Add test for when instance member overrides class member.</title>
<updated>2015-01-08T17:48:44+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-01-08T17:48:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=c33ecb83ba4bc388cd773eec827dc0b85505dce7'/>
<id>urn:sha1:c33ecb83ba4bc388cd773eec827dc0b85505dce7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tests: Separate out test cases that rely on float support to float/ dir.</title>
<updated>2015-01-08T15:41:37+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-01-08T15:41:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=19b3fea6a885d071a1216614ee3f766aba947cbf'/>
<id>urn:sha1:19b3fea6a885d071a1216614ee3f766aba947cbf</id>
<content type='text'>
</content>
</entry>
<entry>
<title>objarray: Make sure that longint works as bytearray size.</title>
<updated>2015-01-04T15:19:16+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2015-01-04T15:19:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=343ca1e63ae90b13af8d0a71f6ed6fc5a6284e33'/>
<id>urn:sha1:343ca1e63ae90b13af8d0a71f6ed6fc5a6284e33</id>
<content type='text'>
</content>
</entry>
<entry>
<title>objstr: Implement kwargs support for str.format().</title>
<updated>2015-01-03T22:26:31+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2015-01-03T22:14:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=c1144966417de643d86286dae3189e8c0e09d9c2'/>
<id>urn:sha1:c1144966417de643d86286dae3189e8c0e09d9c2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py: Allow keyword arguments for namedtuple</title>
<updated>2015-01-01T12:53:23+00:00</updated>
<author>
<name>stijn</name>
<email>stinos@zoho.com</email>
</author>
<published>2014-12-20T15:38:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=021dc440099155ec766fc54559000981f7f8d593'/>
<id>urn:sha1:021dc440099155ec766fc54559000981f7f8d593</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py: Use sequence of strings for named tuple initialization</title>
<updated>2015-01-01T12:53:23+00:00</updated>
<author>
<name>stijn</name>
<email>stinos@zoho.com</email>
</author>
<published>2014-12-20T15:37:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=12340147b0ace7c1feeaf36b618c92652bdb849f'/>
<id>urn:sha1:12340147b0ace7c1feeaf36b618c92652bdb849f</id>
<content type='text'>
- remove single string initialization style
- take list of strings instead
- store list in the type for fast lookup
</content>
</entry>
</feed>
