Many different representation of parameters in python such as :
urllib2.urlopen(url[, data][, timeout])
urllib2.build_opener([handler, ...])
cookielib.MozillaCookieJar(filename, delayload=None, policy=None)
urllib2.urlopen(url[, data][, timeout])
and
urllib2.urlopen(url,data,timeout)
Does the first one means all the url ,data and timeout can be passed as list?
This is incorrect. Square brackets in command/function documentation denote optional parameters. Note that in Python order of parameters does matter, so you’ll need to use keyword arguments to omit parameters in the middle.