@@ -18,7 +18,7 @@ Conceptual hierarchy
1818 Conceptual hierarchy of stream base classes is simplified in MicroPython,
1919 as described in this section.
2020
21- (Abstract) base stream classes, which serve as a foundation for behavior
21+ (Abstract) base stream classes, which serve as a foundation for behaviour
2222of all the concrete classes, adhere to few dichotomies (pair-wise
2323classifications) in CPython. In MicroPython, they are somewhat simplified
2424and made implicit to achieve higher efficiencies and save resources.
@@ -41,15 +41,15 @@ more concise and efficient programs - something which is highly desirable
4141for MicroPython. So, while MicroPython doesn't support buffered streams,
4242it still provides for no-short-operations streams. Whether there will
4343be short operations or not depends on each particular class' needs, but
44- developers are strongly advised to favor no-short-operations behavior
44+ developers are strongly advised to favour no-short-operations behaviour
4545for the reasons stated above. For example, MicroPython sockets are
4646guaranteed to avoid short read/writes. Actually, at this time, there is
4747no example of a short-operations stream class in the core, and one would
4848be a port-specific class, where such a need is governed by hardware
4949peculiarities.
5050
51- The no-short-operations behavior gets tricky in case of non-blocking
52- streams, blocking vs non-blocking behavior being another CPython dichotomy,
51+ The no-short-operations behaviour gets tricky in case of non-blocking
52+ streams, blocking vs non-blocking behaviour being another CPython dichotomy,
5353fully supported by MicroPython. Non-blocking streams never wait for
5454data either to arrive or be written - they read/write whatever possible,
5555or signal lack of data (or ability to write data). Clearly, this conflicts
0 commit comments