Are there any other commands than open() in python to edit files (on Windows or *NIX).
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can get this kind of information very fast and interactively if you’re using ipython:
but I still recommend checking the documention, section 7.2.
Also, to construct a file object (get an object of type ‘file’), “open” is the only possibility in python3 (in python2 there is also “file”, which is sort of alias to “open”)