What's wrong with this Python StringIO that returns empty on second read?

What's wrong with this Python StringIO that returns empty on second read in a parser. The Python code reads the buffer once and assumes it resets, so the second read gets nothing. In Python data pipelines this causes partial parses.

#whatswrongwiththispythoncode #pythonbug #pythonproductionbug #pythondebugging #pythonbackend #pythoncodereview #pythonmistake #pythonbestpract...

https://www.youtube.com/watch?v=HuPw8Ja4a6E

Whats wrong with this Python StringIO that returns empty on second read? #pythonbufferconsumed

YouTube