| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2020-08-07 | Modify some Python stubs | Taku Fukada | |
| 2020-07-27 | Fix several type hints | Taku Fukada | |
| 2020-07-24 | Add and correct some type hints | Taku Fukada | |
| 2020-07-21 | Merge branch 'main' into type_hints | dherrada | |
| 2020-07-17 | Disable existing native networking. | Scott Shawcroft | |
| We're moving towards a co-processor model and a Wiznet library is already available. New native APIs will replace these for chips with networking like the ESP32S2 but they won't be these. | |||
| 2020-07-17 | Merge branch 'main' into type_hints | dherrada | |
| 2020-07-06 | Add license to some obvious files. | Diego Elio Pettenò | |
| 2020-07-03 | Added type hints previously missed | dherrada | |
| 2020-07-03 | Made every init return None | dherrada | |
| 2020-07-03 | Added type hints to socket | dherrada | |
| 2020-07-02 | Removed all 'self, )' | dherrada | |
| 2020-05-12 | Swap sphinx to autoapi and the inline stubs | Scott Shawcroft | |
| 2020-05-11 | Did stage, socket, storage | dherrada | |
| 2019-12-04 | protocols: Allow them to be (optionally) type-safe | Jeff Epler | |
| Protocols are nice, but there is no way for C code to verify whether a type's "protocol" structure actually implements some particular protocol. As a result, you can pass an object that implements the "vfs" protocol to one that expects the "stream" protocol, and the opposite of awesomeness ensues. This patch adds an OPTIONAL (but enabled by default) protocol identifier as the first member of any protocol structure. This identifier is simply a unique QSTR chosen by the protocol designer and used by each protocol implementer. When checking for protocol support, instead of just checking whether the object's type has a non-NULL protocol field, use `mp_proto_get` which implements the protocol check when possible. The existing protocols are now named: protocol_framebuf protocol_i2c protocol_pin protocol_stream protocol_spi protocol_vfs (most of these are unused in CP and are just inherited from MP; vfs and stream are definitely used though) I did not find any crashing examples, but here's one to give a flavor of what is improved, using `micropython_coverage`. Before the change, the vfs "ioctl" protocol is invoked, and the result is not intelligible as json (but it could have resulted in a hard fault, potentially): >>> import uos, ujson >>> u = uos.VfsPosix('/tmp') >>> ujson.load(u) Traceback (most recent call last): File "<stdin>", line 1, in <module> ValueError: syntax error in JSON After the change, the vfs object is correctly detected as not supporting the stream protocol: >>> ujson.load(p) Traceback (most recent call last): File "<stdin>", line 1, in <module> OSError: stream operation not supported | |||
| 2019-05-30 | Improve rST consistency for rst2pyi use | Scott Shawcroft | |
| 2019-05-13 | Check native object in case of early access | Scott Shawcroft | |
| If a native displayio object is accessed before it's super().__init__() has been called, then a placeholder is given that will cause a crash if accessed. This is tricky to get right so we detect this case and raise a NotInplementedError instead of crashing. Fixes #1881 | |||
| 2019-05-02 | Fix socket.recv() buffer length from e23bad3a | Nick Moore | |
| 2019-03-23 | shared-bindings/socket: add socket_recv_into | Joshua Coats | |
| 2019-01-14 | fixup m0 and nrf | Scott Shawcroft | |
| 2018-10-11 | update documentation and translations again | Nick Moore | |
| 2018-10-11 | network module c api into shared-module | Nick Moore | |
| 2018-10-04 | change initialization method + mod_network names | Nick Moore | |
| 2018-10-04 | modify modnetwork and modusocket for circuitpython | Nick Moore | |
| 2018-10-04 | Copy modnetwork and modusocket across from MicroPython | Nick Moore | |
