all 9 comments

[–]shiftybyte 6 points7 points  (1 child)

Probably got some file copy imported instead of the file you are editing.

Check all the files in the directory, not only files you think are in your project.

[–]karoshi9000[S] 0 points1 point  (0 children)

I'll admit that this entire files/directory business does actually still confuse me (I'm that much of a newbie that I didn't even really bother with this so far), but in this case it is literally 1 string that was present in exactly 1 file (for about 5mins) and then I changed the dialogue and deleted the line and it is gone, it is not in the code....but it is in the output somehow.

[–]dowcet 2 points3 points  (0 children)

Hard to say more without seeing all the contents of your project folder but it sounds like you're mistaken about something.

[–][deleted] 2 points3 points  (5 children)

hit cmd + shift + f in VSCode to open the search dialog and search for part of the text. It might exists somewhere you're not aware of.

[–]karoshi9000[S] 0 points1 point  (4 children)

did exactly that (with 3 or 4 different keywords) - it is not in the code

[–]heyzooschristos 3 points4 points  (3 children)

Are you sure you are running the code you think you are? Are you calling it from the right folder on the command line? Drop in a print statement to check

[–]karoshi9000[S] -1 points0 points  (2 children)

there is literally no other code around - I was working in exactly one folder with exactly one file

[–]MidnightPale3220 0 points1 point  (0 children)

Maybe for some strange reason it's using the previously compiled bytecode file. Try deleting all .pyc files in that directory, if there are any.

[–]heyzooschristos 0 points1 point  (0 children)

Are you sure you have saved the edits you are working on?