sir

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Fri Jun 11 03:01:48 EDT 2010


En Wed, 09 Jun 2010 05:03:36 -0300, madhuri vio <madhuri.vio at gmail.com>  
escribió:

> url[, data[, timeout])
>
> in this format of passing arguments i dint understand d syntax...d comma  
> is
> coming immediately after the bracket...dint get it..

Those square brackets are not "real" brackets, you're not supposed to  
actually include them. They indicate an optional section, e.g., given this  
description:

FTP.connect(host[, port[, timeout]])

you may invoke the method as:

connect(host)
connect(host, port)
connect(host, port, timeout)

-- 
Gabriel Genellina




More information about the Python-list mailing list