Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MemoryError
#4
Assuming you have locale settings using a comma as a decimal separator, and you use str(function) in the final call to fix that type error, I am not getting a memory error. I'm guessing at what head should be, and I'm giving 3000 as speed, since that is an allowed value. Actually tried several apparent allowed values and noticed your conditionals are all messed up. They should probably be of the form (2142 <= Speed <= 2499). As it is, the first one is equivalent to Speed >= 2499. And since you are not using elifs, you are probably running the calculations multiple times.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Messages In This Thread
MemoryError - by mitmoot - Nov-27-2018, 07:49 PM
RE: MemoryError - by micseydel - Nov-27-2018, 08:12 PM
RE: MemoryError - by Larz60+ - Nov-27-2018, 08:12 PM
RE: MemoryError - by ichabod801 - Nov-27-2018, 08:35 PM
RE: MemoryError - by Gribouillis - Nov-27-2018, 09:03 PM
RE: MemoryError - by mitmoot - Dec-07-2018, 04:53 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  MemoryError in pywinauto.findwindows.find_windows – Need Help! ktw3857 1 374 Apr-18-2024, 04:28 PM
Last Post: itegumo
  Code starts slowing down? MemoryError AshkanDev 1 2,196 May-19-2020, 11:38 PM
Last Post: AshkanDev
  Getting MemoryError frames.write(buffer) kunwarsingh 0 1,644 Feb-10-2020, 09:39 PM
Last Post: kunwarsingh
  MemoryError AwaAgathe 0 1,763 Feb-26-2019, 02:57 AM
Last Post: AwaAgathe

Forum Jump:

User Panel Messages

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