I could do this:

from ftplib import FTP

ftp = FTP('ip_address', 'username', 'password')

Or, I could do this:

ftp = FTP('ip_address')
ftp.login('username', 'password')

Most of the examples I am seeing online use the second approach.  Is
there some reason why this is to be preferred?

TIA!

-- 
boB
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to