To read/ write a file, I prefer using pathlibs with Path(file).read_text(...) without context managers rather than using with open("file.txt", "r"). I see it is shorter, OOP than, but I don't see other advantages.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
To read/ write a file, I prefer using
pathlibswithPath(file).read_text(...)without context managers rather than usingwith open("file.txt", "r"). I see it is shorter, OOP than, but I don't see other advantages.