Open shenjackyuanjie opened 1 year ago
Looks like a byte order mark. I think notepad has a tendency to add these? For a workaround, you might try copy/pasting to a new file in another editor and saving that. For a potential change in this library, we could use encodings.utf_8_sig
to open the file. That would be useful in this case. More generally, it would be nice if there is a way to open the file "like Python opens the file". That would cover coding:
comments, but I don't know how that is done or if it is available to us at all.
hmmmmm thanks for anser!
well is actully my? fault
maybe close this issue later
I think that it is triggered by your situation. I don't think that makes it "your fault". I also don't think that means there isn't anything to fix in this project. I think we should make a change to allow for BOMs, and anything else Python allows such as the coding comments. I just haven't made the time to do that.
oh, got it thanks for answer!
I try to use memory profiler in my project, but it gives me this issue
you can see the file in my project
Python info
3.11.0
CPython
MSC v.1933 64 bit (AMD64)
System info
Windows-10-10.0.19045-SP0
shenjack-5600X
AMD64
AMD64 Family 25 Model 33 Stepping 0, AuthenticAMD
10
10.0.19045
Python info
andSystem info
gen by DR_crash_report