maybe this question is a little basic, but I’m reading the official docs in python:
ZipFile.extractall([path[, members[, pwd]]])
But I don’t understand what the [] means?
Thanks,
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.
[]means that these are optional arguments that can be supplied to the function. The documentation will mention default values used otherwise.Simple example using open():
The filename is required, but mode and buffering are optional. The default mode for opening a file is read, so
open(filename, 'r')is equivalent toopen(filename). Forbufferingit states: “If omitted, the system default is used”