Hello I´m trying using the next piece of code:
import pickle
object = Object()
filehandler = open(filename, 'w')
pickle.dump(object, filehandler)
I would like to know what should be the extension of the file ‘filename’.
Thank you!
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.
Depends on what you want to do with the file.
filenameshould be sufficient.And don’t use
objectas an identifier. It shadows the builtinobject.