I am learning python and came across this description of a function in urllib.request in the documentation of the standard library :
> urllib.request.urlopen(url, data=None, [timeout, ]*, cafile=None,
> capath=None, cadefault=False, context=None)
I couldn't figure out what the square brackets around timeout,
mean.
I am not even sure how to read the list of parameters of this function : do we have a parameter [timeout
and then a parameter ]*
separated by a comma, or is [timeout, ]*
a parameter as a whole ?
In which case, what does the comma after timeout inside the square brackets mean ?
Also, what does the star/asterisk mean in this particular case ?
Thanks !