Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What does this error mean?
#4
row is not a float, row['offenseFormation'] is a float. How did it get be a float? How am I supposed to know. You didn't include the code that calls formation(row). As far as I know row[] could be anything. Python says it is a float, so I am going to accept that.

You would have more luck if you stop expecting things to be a certain way and accept what actually happens. If Python says row[something] is a float, it is probably a float. A bug is when the program does not perform as expected. When debugging your code you need to be open to the idea that you screwed up and the program is not doing what it is supposed to do. You blind yourself with your stubbornness. The sooner you can accept that computers are not impressed by by your programming skills and enjoy making you feel like an idiot the sooner you will find your errors and correct them. It is a tough lesson.
Reply


Messages In This Thread
What does this error mean? - by ErnestTBass - Aug-24-2020, 05:48 PM
RE: What does this error mean? - by deanhystad - Aug-24-2020, 06:19 PM
RE: What does this error mean? - by ErnestTBass - Aug-24-2020, 07:51 PM
RE: What does this error mean? - by deanhystad - Aug-24-2020, 09:38 PM
RE: What does this error mean? - by ErnestTBass - Aug-25-2020, 02:45 PM
RE: What does this error mean? - by deanhystad - Aug-25-2020, 04:50 PM
RE: What does this error mean? - by ErnestTBass - Aug-25-2020, 05:07 PM
RE: What does this error mean? - by jefsummers - Aug-25-2020, 08:08 PM
RE: What does this error mean? - by perfringo - Aug-26-2020, 05:19 AM
RE: What does this error mean? - by ErnestTBass - Aug-26-2020, 04:43 PM
RE: What does this error mean? - by snippsat - Aug-26-2020, 05:37 PM
RE: What does this error mean? - by ErnestTBass - Aug-26-2020, 07:31 PM
RE: What does this error mean? - by jefsummers - Aug-26-2020, 08:19 PM
RE: What does this error mean? - by ErnestTBass - Aug-27-2020, 05:37 PM
RE: What does this error mean? - by jefsummers - Aug-27-2020, 07:05 PM
RE: What does this error mean? - by ErnestTBass - Aug-27-2020, 07:18 PM
RE: What does this error mean? - by jefsummers - Aug-28-2020, 11:06 AM
RE: What does this error mean? - by ErnestTBass - Aug-28-2020, 02:02 PM
RE: What does this error mean? - by jefsummers - Aug-28-2020, 07:58 PM

Forum Jump:

User Panel Messages

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