Often, the major goal of porting Rust functionality over to Python is for speed. So far, my initial experimentation has shown that that gain is very low (or even non-existant) due to 2 main reasons: ...
As of Python 3.13, itertools.tee() now "flattens" other tee objects, as documented in #123885. This behavior change seems to be from Python 3.13 because tee() objects in Python 3.12 and below do not ...