On Windows, interactive Python sys.stdin.readline() truncates Ctrl+V pastes to 512 characters.
How do I extend this limit? I need large pastes for prototyping.
Tried the fdopen() trick and it didn't work.
The buffer seems to be 1024 on macOS.
UPD: Looks like the buffer size is a compile-time constant.
In C, it is possible to expand buffer with setvbuf(), but this function is not wrapped by Python, which is sad. I guess I'll try to call it in MSVCRT.DLL with ctypes.