<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/py/builtinimport.c, branch 1.x</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=1.x</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=1.x'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2017-02-24T14:13:07+00:00</updated>
<entry>
<title>Switch exception throwing to mp_raise helpers. It saves a little code space each time to share the call.</title>
<updated>2017-02-24T14:13:07+00:00</updated>
<author>
<name>Scott Shawcroft</name>
<email>scott.shawcroft@gmail.com</email>
</author>
<published>2017-02-24T14:13:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=12fa5b3a66d6f0034113a56c7d647c7bac5be74c'/>
<id>urn:sha1:12fa5b3a66d6f0034113a56c7d647c7bac5be74c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py/builtinimport: Fix bug when importing names from frozen packages.</title>
<updated>2017-01-08T09:17:23+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2017-01-08T09:17:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=b528e9a428f92241d2cf3bb30f78b0d65e1a8428'/>
<id>urn:sha1:b528e9a428f92241d2cf3bb30f78b0d65e1a8428</id>
<content type='text'>
The commit d9047d3c8a99603884db25076c37778f50633ca6 introduced a bug
whereby "from a.b import c" stopped working for frozen packages.  This is
because the path was not properly truncated and became "a//b".  Such a
path resolves correctly for a "real" filesystem, but not for a search in
the list of frozen modules.
</content>
</entry>
<entry>
<title>py/builtinimport: Support importing packages from compiled .mpy files.</title>
<updated>2016-12-13T04:09:48+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2016-12-13T04:09:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=d9047d3c8a99603884db25076c37778f50633ca6'/>
<id>urn:sha1:d9047d3c8a99603884db25076c37778f50633ca6</id>
<content type='text'>
This patch ensures that __init__.mpy files are imported if their
containing directory is imported as a package.
</content>
</entry>
<entry>
<title>py: Factor persistent code load/save funcs into persistentcode.[ch].</title>
<updated>2016-11-16T05:14:14+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2016-11-16T00:55:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=6810f2c134f9329e9dc18f4e0d3a1936ca6d8011'/>
<id>urn:sha1:6810f2c134f9329e9dc18f4e0d3a1936ca6d8011</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py: Use mp_raise_msg helper function where appropriate.</title>
<updated>2016-10-17T01:17:37+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2016-10-17T01:17:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=7d0d7215d2575a2d36d34c9a13b58cade0610a28'/>
<id>urn:sha1:7d0d7215d2575a2d36d34c9a13b58cade0610a28</id>
<content type='text'>
Saves the following number of bytes of code space: 176 for bare-arm, 352
for minimal, 272 for unix x86-64, 140 for stmhal, 120 for esp8266.
</content>
</entry>
<entry>
<title>py/builtinimport: Fix nanbox build after change to better handle -m modules.</title>
<updated>2016-09-20T14:55:42+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2016-09-20T14:55:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=7ea3fa2641d6f3ea5a3ff2454dbfa89540e43f0b'/>
<id>urn:sha1:7ea3fa2641d6f3ea5a3ff2454dbfa89540e43f0b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>builtinimport: add the module specified by -m to sys.modules as '__main__'</title>
<updated>2016-09-20T11:01:31+00:00</updated>
<author>
<name>Delio Brignoli</name>
<email>brignoli.delio@gmail.com</email>
</author>
<published>2016-08-22T10:28:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=21c719bd0a0acf709de4d6dfe0d830aa60427e3f'/>
<id>urn:sha1:21c719bd0a0acf709de4d6dfe0d830aa60427e3f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py/builtinimport: Disable "imported as namespace package" warning.</title>
<updated>2016-07-02T11:45:49+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2016-07-02T11:45:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=ae184cb9de9ec9a61bbb56d316ecf9f1b9543a4b'/>
<id>urn:sha1:ae184cb9de9ec9a61bbb56d316ecf9f1b9543a4b</id>
<content type='text'>
Namespace packages are natural part of Python3, CPython3 doesn't have such
warning, it made sense only from point of view of Python2 legacy.
</content>
</entry>
<entry>
<title>py: Allow to stat and import frozen mpy files using new frozen "VFS".</title>
<updated>2016-05-23T11:42:23+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2016-05-23T11:42:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=274952a1174efe27fa90dd793587837584712358'/>
<id>urn:sha1:274952a1174efe27fa90dd793587837584712358</id>
<content type='text'>
Freezing mpy files using mpy-tool.py now works again.
</content>
</entry>
<entry>
<title>py/builtinimport: Unbreak bare-arm build.</title>
<updated>2016-05-21T19:37:58+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2016-05-21T19:37:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=2c573f00b8ce1ef67e8e754b5231e061fbd5b064'/>
<id>urn:sha1:2c573f00b8ce1ef67e8e754b5231e061fbd5b064</id>
<content type='text'>
</content>
</entry>
</feed>
