[Python-ideas] Possibility to specify port in __init__ of ftplib.FTP

2021-07-31 Thread Stephen J. Turnbull
Marty writes: > If there is possible to connect and login to ftp server within > __init__, I think it would make sense to add parameter **port** in > ftplib.FTP. It could look like this: > ``` > def __init__(self, host='', port=0, user='', passwd='', acct='', > timeout=

[Python-ideas] Possibility to specify port in __init__ of ftplib.FTP

2021-07-31 Thread Marty
Hi. If there is possible to connect and login to ftp server within __init__, I think it would make sense to add parameter **port** in ftplib.FTP. It could look like this: ``` def __init__(self, host='', port=0, user='', passwd='', acct='', timeout=_GLOBAL_DEFAULT_TIMEOUT, so