[issue38740] Line count mismatch between open() vs sys.stdin api calls

2019-11-08 Thread Thamme Gowda
Change by Thamme Gowda : -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue38740> ___ ___ Python-bugs-list

[issue38740] Line count mis match between open() vs sys.stdin api calls

2019-11-08 Thread Thamme Gowda
Thamme Gowda added the comment: Thanks for the quick response. Yes ``newline="\n"`` fixed it. So it as a known behavior. (I was tempted to consider it as a bug since the behavior differed from sys.stdin) Thank you. -- ___ Python track

[issue38740] Line count mis match between open() vs sys.stdin api calls

2019-11-07 Thread Thamme Gowda
Change by Thamme Gowda : Added file: https://bugs.python.org/file48702/line_break_err.txt ___ Python tracker <https://bugs.python.org/issue38740> ___ ___ Python-bug

[issue38740] Line count mis match between open() vs sys.stdin api calls

2019-11-07 Thread Thamme Gowda
New submission from Thamme Gowda : I ran into a line count mismatch bug and I narrowed it down to 9 lines where the line break handling is causing an issue. Please find the attachment named line_break_err.txt to reproduce the below. $ md5sum line_break_err.txt