<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/py/objtype.c, branch v1.0.1</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.0.1</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.0.1'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2014-05-11T17:37:21+00:00</updated>
<entry>
<title>py: Use mp_arg_check_num in more places.</title>
<updated>2014-05-11T17:37:21+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-05-11T17:37:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=ee7a880d6e669423309c3a5f8c20b59027604572'/>
<id>urn:sha1:ee7a880d6e669423309c3a5f8c20b59027604572</id>
<content type='text'>
Updated functions now do proper checking that n_kw==0, and are simpler
because they don't have to explicitly raise an exception.  Down side is
that the error messages no longer include the function name, but that's
acceptable.

Saves order 300 text bytes on x64 and ARM.
</content>
</entry>
<entry>
<title>objtuple: Go out of the way to support comparison of subclasses.</title>
<updated>2014-05-11T00:33:19+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2014-05-11T00:16:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=ea9708092e8a49377a465ef8c8500943fe9ba772'/>
<id>urn:sha1:ea9708092e8a49377a465ef8c8500943fe9ba772</id>
<content type='text'>
Two things are handled here: allow to compare native subtypes of tuple,
e.g. namedtuple (TODO: should compare type too, currently compared
duck-typedly by content). Secondly, allow user sunclasses of tuples
(and its subtypes) be compared either. "Magic" I did previously in
objtype.c covers only one argument (lhs is many), so we're in trouble
when lhs is native type - there's no other option besides handling
rhs in special manner. Fortunately, this patch outlines approach with
fast path for native types.
</content>
</entry>
<entry>
<title>py: Don't try to "bind" types store as attributes of objects.</title>
<updated>2014-05-11T00:33:19+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2014-05-11T00:12:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=9511f60f016547ab00f634d451c230351bd8b225'/>
<id>urn:sha1:9511f60f016547ab00f634d451c230351bd8b225</id>
<content type='text'>
This was hit when trying to make urlparse.py from stdlib run. Took
quite some time to debug.

TODO: Reconsile bound method creation process better, maybe callable is
to generic type to bind at all?
</content>
</entry>
<entry>
<title>objtype: Comments for duplicating code in runtime.c.</title>
<updated>2014-05-10T18:26:08+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2014-05-10T18:10:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=aa4d19a05cdcdb4523c1a795e80a1e842e8f9a97'/>
<id>urn:sha1:aa4d19a05cdcdb4523c1a795e80a1e842e8f9a97</id>
<content type='text'>
</content>
</entry>
<entry>
<title>objtype: Implement -&gt;getiter() method for instances.</title>
<updated>2014-05-10T18:26:08+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2014-05-10T18:09:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=1a7403bb743c02a37247d0c76397cc7891fc127c'/>
<id>urn:sha1:1a7403bb743c02a37247d0c76397cc7891fc127c</id>
<content type='text'>
Includes support for native bases.
</content>
</entry>
<entry>
<title>objtype: Don't treat inheritance from "object" as from native type.</title>
<updated>2014-05-10T13:56:20+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2014-05-09T23:03:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=d86020ac4f6379fa14e1086b1d28e9e080c2a934'/>
<id>urn:sha1:d86020ac4f6379fa14e1086b1d28e9e080c2a934</id>
<content type='text'>
"object" type in MicroPython currently doesn't implement any methods, and
hopefully, we'll try to stay like that for as long as possible. Even if we
have to add something eventually, look up from there might be handled in
adhoc manner, as last resort (that's not compliant with Python3 MRO, but
we're already non-compliant). Hence: 1) no need to spend type trying to
lookup anything in object; 2) no need to allocate subobject when explicitly
inheriting from object; 3) and having multiple bases inheriting from object
is not a case of incompatible multiple inheritance.
</content>
</entry>
<entry>
<title>py: Tidy up returning NULL which should be MP_OBJ_NOT_SUPPORTED.</title>
<updated>2014-05-10T12:55:11+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-05-10T12:55:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=d0a5bf34f746276550aef9c8519160c033611571'/>
<id>urn:sha1:d0a5bf34f746276550aef9c8519160c033611571</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add license header to (almost) all files.</title>
<updated>2014-05-03T22:27:38+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-05-03T22:27:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=04b9147e150d2d6fa3750f312fe328b6a71c1b28'/>
<id>urn:sha1:04b9147e150d2d6fa3750f312fe328b6a71c1b28</id>
<content type='text'>
Blanket wide to all .c and .h files.  Some files originating from ST are
difficult to deal with (license wise) so it was left out of those.

Also merged modpyb.h, modos.h, modstm.h and modtime.h in stmhal/.
</content>
</entry>
<entry>
<title>py, objtype.c: Rename class_ to instance_ following change of typedef.</title>
<updated>2014-05-03T16:19:35+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-05-03T16:19:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=9c5fc83e6ab39abaf8e3c803c7f13cda33a50280'/>
<id>urn:sha1:9c5fc83e6ab39abaf8e3c803c7f13cda33a50280</id>
<content type='text'>
This follows up 0a7e01ae3c529fddf79dc5c71bf7e43cff3f9fa0.
</content>
</entry>
<entry>
<title>py, unix: Make "mpconfig.h" be first included, as other headers depend on it.</title>
<updated>2014-05-02T14:48:40+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2014-05-02T14:47:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=f54bcbf0997211a3d2a04bab09c79f602fa0c8e9'/>
<id>urn:sha1:f54bcbf0997211a3d2a04bab09c79f602fa0c8e9</id>
<content type='text'>
Specifically, nlr.h does.
</content>
</entry>
</feed>
