[issue4972] let's equip ftplib.FTP with __enter__ and __exit__

Tarek Ziadé report at bugs.python.org
Mon Jan 19 11:43:28 CET 2009


Tarek Ziadé <ziade.tarek at gmail.com> added the comment:

positive feedbacks on python-ideas, so I'll start to write the patches.

targets : 

   - smtplib.SMTP
   - imaplib.IMAP4
   - ftplib.FTP

first patch : smtplib

(will do ftplib and imaplib as well, then propose this enhancement to
python-dev)

----------
keywords: +patch
Added file: http://bugs.python.org/file12792/smtplib.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4972>
_______________________________________


More information about the Python-bugs-list mailing list