• Hellfire103@lemmy.ca
    link
    fedilink
    English
    arrow-up
    38
    arrow-down
    3
    ·
    edit-2
    19 hours ago

    That happens all the time with Python. It often shows me errors in the imported modules, which are easily confused with my own code if I’m tired and don’t read the message properly.

    • ZoteTheMighty@lemmy.zip
      link
      fedilink
      arrow-up
      3
      ·
      9 hours ago

      It can also happen in Python if you edit the file after runtime. It parses the code on import, but re-reads the file as text during the error message, so if you added or deleted lines, the error report can report a dubious line.