[issue37036] Iterating a text file by line should not implicitly disable tell

2019-05-27 Thread Jeffrey Kintscher
Change by Jeffrey Kintscher : -- nosy: +Jeffrey.Kintscher ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue37036] Iterating a text file by line should not implicitly disable tell

2019-05-24 Thread Josh Rosenberg
Josh Rosenberg added the comment: Left a dangling sentence in there: "I used two arg iter in both cases to keep the code paths as similar as possible so the `telling`." should read: "I used iter(f.readline, '') in both cases to keep the code paths as similar as possible so the `telling` op

[issue37036] Iterating a text file by line should not implicitly disable tell

2019-05-24 Thread Josh Rosenberg
New submission from Josh Rosenberg : TextIOWrapper explicitly sets the `telling` flag to 0 when .__next__ ( textiowrapper_iternext ) is called ( https://github.com/python/cpython/blob/3.7/Modules/_io/textio.c#L2974 ), e.g. during standard for loops over the file of this form, trying to call te