[issue43028] seeking past the end of a file unexpected behavior

2021-01-25 Thread Cotton Seed
New submission from Cotton Seed : Seeking past the end of a file with file objects does not match the same code implemented in terms of file descriptors. Is this the intended behavior? Smallest example I could find: f = open('new_file', 'ab') print(f.seek(1)) print(f.

[issue43028] seeking past the end of a file unexpected behavior

2021-01-25 Thread Cotton Seed
Cotton Seed added the comment: Christian, thanks for the quick response and the clarification. I understand my mistake now. Thanks! -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracke