<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/py/builtinimport.c, branch v1.5.1</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.5.1</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.5.1'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2015-11-13T12:49:18+00:00</updated>
<entry>
<title>py: Allow to import compiled bytecode files.</title>
<updated>2015-11-13T12:49:18+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-11-02T21:57:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=432e8275a9b383ba7f33b4a582d6dde0e1a1e35d'/>
<id>urn:sha1:432e8275a9b383ba7f33b4a582d6dde0e1a1e35d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>builtinimport: Fix running package submodule with -m.</title>
<updated>2015-06-28T21:26:45+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2015-06-28T21:21:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=9780e552748842d6f76f7a1a7f390287552844f1'/>
<id>urn:sha1:9780e552748842d6f76f7a1a7f390287552844f1</id>
<content type='text'>
When "micropython -m pkg.mod" command was used, relative imports in pkg.mod
didn't work, because pkg.mod.__name__ was set to __main__, and the fact that
it's a package submodule was missed. This is an original workaround to this
issue. TODO: investigate and compare how CPython deals with this issue.
</content>
</entry>
<entry>
<title>builtinimport: Catch case when relative import happens without active package.</title>
<updated>2015-06-26T21:40:21+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2015-06-26T21:34:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=c4045f57e32a3e276999ceb28e966dbdb71a1e06'/>
<id>urn:sha1:c4045f57e32a3e276999ceb28e966dbdb71a1e06</id>
<content type='text'>
CPython raises SystemError in this case, but we don't have that enabled, so
raise ImportError.
</content>
</entry>
<entry>
<title>unix: Make micropython -m &lt;module&gt; work for frozen modules.</title>
<updated>2015-06-05T21:10:58+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2015-06-05T21:10:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=07408cbd1f1c10b6d4784dccdea3f14e44605dca'/>
<id>urn:sha1:07408cbd1f1c10b6d4784dccdea3f14e44605dca</id>
<content type='text'>
This requires some special handling, which was previosuly applied only to
the main code path.
</content>
</entry>
<entry>
<title>py: Add %q format support to mp_[v]printf, and use it.</title>
<updated>2015-04-16T14:30:16+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-04-11T12:03:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=044c473de203b4dbe93874813b430fb6336db2b2'/>
<id>urn:sha1:044c473de203b4dbe93874813b430fb6336db2b2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>builtinimport: Revamp&amp;refactor handling of relative imports.</title>
<updated>2015-02-16T10:11:34+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2015-02-16T10:10:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=9e6c82960e38963e4392ad3180811d10657519b3'/>
<id>urn:sha1:9e6c82960e38963e4392ad3180811d10657519b3</id>
<content type='text'>
Relative imports are based of a package, so we're currently at a module
within a package, we should get to package first.

Also, factor out path travsering operation, but this broke testing for
boundary errors with relative imports. TODO: reintroduce them, together
with proper tests.
</content>
</entry>
<entry>
<title>builtinimport: Improve debugging output.</title>
<updated>2015-02-16T10:11:03+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2015-02-16T10:10:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=078172dcaba52fe46e50fdc32175764d9c027ad7'/>
<id>urn:sha1:078172dcaba52fe46e50fdc32175764d9c027ad7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py: Change vstr_null_terminate -&gt; vstr_null_terminated_str, returns str.</title>
<updated>2015-01-29T13:57:23+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-01-29T13:57:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=827b0f747b2aa4870ef8de90cb0c3a4151e5ce71'/>
<id>urn:sha1:827b0f747b2aa4870ef8de90cb0c3a4151e5ce71</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py: Change vstr so that it doesn't null terminate buffer by default.</title>
<updated>2015-01-28T23:43:01+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-01-28T23:43:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=0d3cb6726ddc1bab9fdd11a0aaa259fb436da4b2'/>
<id>urn:sha1:0d3cb6726ddc1bab9fdd11a0aaa259fb436da4b2</id>
<content type='text'>
This cleans up vstr so that it's a pure "variable buffer", and the user
can decide whether they need to add a terminating null byte.  In most
places where vstr is used, the vstr did not need to be null terminated
and so this patch saves code size, a tiny bit of RAM, and makes vstr
usage more efficient.  When null termination is needed it must be
done explicitly using vstr_null_terminate.
</content>
</entry>
<entry>
<title>builtinimport: Make sure that qstr is used properly to load frozen modules.</title>
<updated>2015-01-21T21:14:46+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2015-01-21T21:14:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=8064892c9b894f609b270f85a15ef10f4443d714'/>
<id>urn:sha1:8064892c9b894f609b270f85a15ef10f4443d714</id>
<content type='text'>
</content>
</entry>
</feed>
