[issue23414] seek(count, whence) accepts bogus whence on windows, python2.7

2020-04-18 Thread Ned Deily
Change by Ned Deily : -- resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-

[issue23414] seek(count, whence) accepts bogus whence on windows, python2.7

2020-04-18 Thread Zackery Spytz
Zackery Spytz added the comment: Python 2 is EOL. -- nosy: +ZackerySpytz ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue23414] seek(count, whence) accepts bogus whence on windows, python2.7

2015-02-14 Thread Steve Dower
Steve Dower added the comment: I can't say why 2.7 doesn't use _fseeki64, but 3.5 certainly does. Possibly it's a significant change of behaviour that would break backwards compatibility? Making a currently working call raise new exceptions is certainly worth double-checking before introducin

[issue23414] seek(count, whence) accepts bogus whence on windows, python2.7

2015-02-08 Thread eryksun
eryksun added the comment: The whence argument is used in a switch statement that handles SEEK_END and SEEK_CUR. It doesn't raise an error for an invalid whence value. It just falls through to the fsetpos call. _portable_fseek https://hg.python.org/cpython/file/648dcafa7e5f/Objects/fileobject.

[issue23414] seek(count, whence) accepts bogus whence on windows, python2.7

2015-02-08 Thread mattip
New submission from mattip: f=open('abc.txt', 'w+') f.seek(0, 42) does not raise an exception on windows, python2.7 -- components: Windows messages: 235568 nosy: mattip, steve.dower, tim.golden, zach.ware priority: normal severity: normal status: open title: seek(count, whence) accepts