◐ Shell
clean mode source ↗

Message 238969 - Python tracker

Yeah, if we're going to check the type for iterables to convert strings, we might as well check the type for read() as well.

The bit about the len not being set except for str and bytes was me mis-remembering what I read in the code.  (The isinstance check is about whether _send_output sends the body in the same packet.)