title: Python ftplib - specify port
body: <p>I would like to specify the port with Python's ftplib client (instead of default port 21). </p>
  
  <p>Here is the code:</p>
  
  <pre><code>from ftplib import FTP
  ftp = FTP('localhost') # connect to host, default port
  </code></pre>
  
  <p>Is there an easy way to specify an alternative port?</p>