circuitpython/shared-bindings/usb_cdc
Jeff Epler 5aa203f13e
Restore CIRCUITPY-CHANGEs for stream protocols
We mark all protocols with their type using MP_PROTO_IMPLEMENT,
and checking in mp_get_stream{,_raise}.

This was not turning up as a problem in tests until a (new, not yet
commited) change to jpegio caused a segfault because a type implementing
a different protocol was passed in to mp_get_stream.

By using 0 (instead of MP_QSTR_protocol_stream) as the marker for
objects implementing the standard micropython stream protocol, the
number of CIRCUITPY-CHANGEs is minimized.
2023-12-24 10:41:54 -06:00
..
__init__.c Switch to using MP_ERROR_TEXT instead of translate, globally 2023-10-30 09:49:06 +01:00
__init__.h update Python API according to review comments 2021-05-03 22:29:02 -04:00
Serial.c Restore CIRCUITPY-CHANGEs for stream protocols 2023-12-24 10:41:54 -06:00
Serial.h handle reads/writes larger than buffers; add .write_timeout 2021-02-19 14:15:31 -05:00