Python Forum
offset can not be negative in File.seek()?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
offset can not be negative in File.seek()?
#1
It's intersting I can not put the "offset" to non-zero if I set the second parameter as "1" or "2" in file.seek(), and please refer to the below screenshot for more details.
I don't believe it's a bug of Python Idle environment, but how to explain and fix it?

   
Reply


Messages In This Thread
offset can not be negative in File.seek()? - by jollydragon - Sep-27-2019, 09:04 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  negative memory usage akbarza 1 193 Apr-27-2024, 08:43 AM
Last Post: Gribouillis
  Goal Seek tdutcher05 1 821 Nov-17-2023, 10:33 PM
Last Post: deanhystad
  is there any tool to convert negative base to int? Skaperen 7 2,444 May-27-2022, 07:30 AM
Last Post: Gribouillis
  pytz: get integer utc offset from Olsen region/city h4tt3n 2 5,309 Jul-30-2020, 06:43 AM
Last Post: h4tt3n
  how to write offset number to disk use python? Pyguys 4 3,078 Apr-11-2020, 07:53 AM
Last Post: Pyguys
  search binary file and list all founded keyword offset Pyguys 4 2,807 Mar-17-2020, 06:46 AM
Last Post: Pyguys
  Def code does not work for negative integers. doug2019 1 1,942 Oct-31-2019, 11:00 PM
Last Post: ichabod801
  Positive to negative bernardoB 6 4,416 Mar-13-2019, 07:39 PM
Last Post: bernardoB
  Python offset to length write in a File basic_learner 3 3,958 Dec-13-2018, 06:20 PM
Last Post: Gribouillis
  negative to positive slices Skaperen 3 3,667 Jan-29-2018, 05:47 AM
Last Post: Skaperen

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020