Closed Starshine09 closed 3 weeks ago
One issue I see with
chonker = open("rig","r")
text = str(chonker)
tree = ast.parse(text)
print(ast.to_pretty_str(tree))
is, that this is never actually reading the file. if you want to read a file, use chonker.read()
instead of str(chonker)
str(chonker)
looks something along the lines like this: <_io.TextIOWrapper name='chonker' mode='r' encoding='UTF-8'>
Hello,
I'm being stubborn and trying to do things outside my experience level, so I apologize if this is a dumb noob error. I haven't even tried to debug it properly yet but I did manage to find the smoking gun or maybe the smoke-in-mirrors; I see what went wrong but not why and have no idea how to investigate. I attached the source file and parsed tree for reference. Thank you for your work with this; I should be able to continue working through the file now in any case!
I went to try to "walk the tree" and went down a bit of a rabbit hole not realizing that "Chunk" was not actually a Python thing at all before digging into the error...
my ultra basic debug output I stuck in places found this:
the '<' looked out of place here, but wait, there's more...
what I suspect could be the sneaky escape artist literally just a scroll away
escape_char_issue.zip