<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/tests/micropython/viper.py, branch main</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=main</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2014-10-05T21:27:12+00:00</updated>
<entry>
<title>tests: Add check for micropython.native and then skip relevant tests.</title>
<updated>2014-10-05T21:27:12+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-10-05T21:27:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=5a04e2cca8255c2d4a1218d6ac0b38e67306206b'/>
<id>urn:sha1:5a04e2cca8255c2d4a1218d6ac0b38e67306206b</id>
<content type='text'>
If micropython.native decorator doesn't compile, then we skill all
native/viper tests.

This patch also re-enables the ujson_loads test on NT.

Addresses issue #861, and partially addresses issue #856.
</content>
</entry>
<entry>
<title>py: Fix bug where GC collected native/viper/asm function data.</title>
<updated>2014-08-24T15:28:17+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-08-24T15:28:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=3c658a4e755a75e495303957208486e583ddb270'/>
<id>urn:sha1:3c658a4e755a75e495303957208486e583ddb270</id>
<content type='text'>
Because (for Thumb) a function pointer has the LSB set, pointers to
dynamic functions in RAM (eg native, viper or asm functions) were not
being traced by the GC.  This patch is a comprehensive fix for this.

Addresses issue #820.
</content>
</entry>
<entry>
<title>py: Viper can call functions with native types, and raise exceptions.</title>
<updated>2014-08-16T21:06:11+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-08-16T21:06:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=86de21b810693bccdd88d53aacb6d8acf26f09e0'/>
<id>urn:sha1:86de21b810693bccdd88d53aacb6d8acf26f09e0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py: Viper can now store to global.</title>
<updated>2014-08-15T22:47:59+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-08-15T22:47:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=e6c0dff9671c493e9a13a22a1b8902dee88da064'/>
<id>urn:sha1:e6c0dff9671c493e9a13a22a1b8902dee88da064</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py: Fix typing of viper locals; allow default types in annotation.</title>
<updated>2014-08-15T21:39:08+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-08-15T21:39:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=a5190a7dac7a73e676d6d649035f846ea92d2d2d'/>
<id>urn:sha1:a5190a7dac7a73e676d6d649035f846ea92d2d2d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py: Allow viper to have type annotations.</title>
<updated>2014-08-15T15:45:41+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-08-15T15:45:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=2ac4af6946543ae96cf3659468e1b8cabb057f85'/>
<id>urn:sha1:2ac4af6946543ae96cf3659468e1b8cabb057f85</id>
<content type='text'>
Viper functions can now be annotated with the type of their arguments
and return value.  Eg:

@micropython.viper
def f(x:int) -&gt; int:
    return x + 1
</content>
</entry>
</feed>
