<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/py/py.mk, branch v1.5.2</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.5.2</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.5.2'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2015-12-14T21:48:12+00:00</updated>
<entry>
<title>py/objpolyiter: Implement instance-polymorphic iterator type.</title>
<updated>2015-12-14T21:48:12+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2015-12-14T21:48:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=1a1cceaf6f42332aee3ab69d52488d7cd5f8fd30'/>
<id>urn:sha1:1a1cceaf6f42332aee3ab69d52488d7cd5f8fd30</id>
<content type='text'>
This allows to have single itertaor type for various internal iterator
types (save rodata space by not having repeating almost-empty type
structures). It works by looking "iternext" method stored in particular
object instance (should be first object field after "base").
</content>
</entry>
<entry>
<title>unix: Move modmachine into unix directory</title>
<updated>2015-12-12T23:21:36+00:00</updated>
<author>
<name>Dave Hylands</name>
<email>dhylands@gmail.com</email>
</author>
<published>2015-12-12T22:15:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=f9251659424664ed3f30c2b2a990bd7b9fa22c65'/>
<id>urn:sha1:f9251659424664ed3f30c2b2a990bd7b9fa22c65</id>
<content type='text'>
This leaves behind the common functionality in extmod/machine_mem.c
which can be used by all ports.
</content>
</entry>
<entry>
<title>extmod: Move fsusermount.c from stmhal for cross-port reuse.</title>
<updated>2015-11-25T11:19:36+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2015-11-24T22:43:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=3a1bbcc2ef46bbab90ef3cde88dfcd8810e71d74'/>
<id>urn:sha1:3a1bbcc2ef46bbab90ef3cde88dfcd8810e71d74</id>
<content type='text'>
</content>
</entry>
<entry>
<title>extmod/modlwip: slip: Use stream protocol and be port-independent.</title>
<updated>2015-10-26T21:04:59+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2015-10-26T21:04:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=e0d7740a2294ed6bc7c6237f1a12413e0c5a9ce1'/>
<id>urn:sha1:e0d7740a2294ed6bc7c6237f1a12413e0c5a9ce1</id>
<content type='text'>
Based on the original patch by Galen Hazelwood:
https://github.com/micropython/micropython/pull/1517 .
</content>
</entry>
<entry>
<title>all: Make netutils.h available to all ports by default.</title>
<updated>2015-10-19T15:32:42+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2015-10-19T15:22:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=e0f5df579b6cf0410b9693f9a75d9b50a0de350e'/>
<id>urn:sha1:e0f5df579b6cf0410b9693f9a75d9b50a0de350e</id>
<content type='text'>
Generally, ports should inherit INC from py.mk, append to it, not
overwrite it. TODO: Likely should do the same for other vars too.
</content>
</entry>
<entry>
<title>modussl: SSL socket wrapper module based on axTLS.</title>
<updated>2015-10-06T15:10:39+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2015-10-06T15:10:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=aaa8867d4a4a1274ea43429c00e8bdfa6b28a015'/>
<id>urn:sha1:aaa8867d4a4a1274ea43429c00e8bdfa6b28a015</id>
<content type='text'>
</content>
</entry>
<entry>
<title>unix-cpy: Remove unix-cpy.  It's no longer needed.</title>
<updated>2015-08-17T11:51:26+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-08-14T11:24:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=65dc960e3b22a8426e369607e47c19b380ce30ea'/>
<id>urn:sha1:65dc960e3b22a8426e369607e47c19b380ce30ea</id>
<content type='text'>
unix-cpy was originally written to get semantic equivalent with CPython
without writing functional tests.  When writing the initial
implementation of uPy it was a long way between lexer and functional
tests, so the half-way test was to make sure that the bytecode was
correct.  The idea was that if the uPy bytecode matched CPython 1-1 then
uPy would be proper Python if the bytecodes acted correctly.  And having
matching bytecode meant that it was less likely to miss some deep
subtlety in the Python semantics that would require an architectural
change later on.

But that is all history and it no longer makes sense to retain the
ability to output CPython bytecode, because:

1. It outputs CPython 3.3 compatible bytecode.  CPython's bytecode
changes from version to version, and seems to have changed quite a bit
in 3.5.  There's no point in changing the bytecode output to match
CPython anymore.

2. uPy and CPy do different optimisations to the bytecode which makes it
harder to match.

3. The bytecode tests are not run.  They were never part of Travis and
are not run locally anymore.

4. The EMIT_CPYTHON option needs a lot of extra source code which adds
heaps of noise, especially in compile.c.

5. Now that there is an extensive test suite (which tests functionality)
there is no need to match the bytecode.  Some very subtle behaviour is
tested with the test suite and passing these tests is a much better
way to stay Python-language compliant, rather than trying to match
CPy bytecode.
</content>
</entry>
<entry>
<title>py: Rebuild port if mpconfigport.mk changed (if any).</title>
<updated>2015-06-11T08:08:39+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2015-06-10T22:24:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=a19ba5fea073245b98277b372493d652243354e9'/>
<id>urn:sha1:a19ba5fea073245b98277b372493d652243354e9</id>
<content type='text'>
mpconfigport.mk contains configuration options which affect the way
MicroPython is linked. In this regard, it's "stronger" configuration
dependency than even mpconfigport.h, so if we rebuild everything on
mpconfigport.h change, we certianly should of that on mpconfigport.mk
change too.
</content>
</entry>
<entry>
<title>py: Wrap qstr defs in quotes to protect from C preprocessor.</title>
<updated>2015-05-30T22:14:34+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-05-30T22:14:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=db52fd8e4dcc45d07ad1567329943d2b9dabcdea'/>
<id>urn:sha1:db52fd8e4dcc45d07ad1567329943d2b9dabcdea</id>
<content type='text'>
This patch converts Q(abc) to "Q(abc)" to protect the abc from the
C preprocessor, then converts back after the preprocessor is finished.
So now we can safely put includes in mpconfig(port).h, and also
preprocess qstrdefsport.h (latter is now done also in this patch).

Addresses issue #1252.
</content>
</entry>
<entry>
<title>objsingleton: New home for Ellipsis and NotImplemented.</title>
<updated>2015-05-05T19:18:07+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2015-05-05T19:18:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=76677270218fb5732296e4fe1a0acbe05c8f818c'/>
<id>urn:sha1:76677270218fb5732296e4fe1a0acbe05c8f818c</id>
<content type='text'>
Having NotImplemented as MP_OBJ_SENTINEL turned out to be problematic
(it needs to be checked for in a lot of places, otherwise it'll crash
as would pass MP_OBJ_IS_OBJ()), so made a proper singleton value like
Ellipsis, both of them sharing the same type.
</content>
</entry>
</feed>
