This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author tarek
Recipients tarek
Date 2009-01-17.17:28:08
SpamBayes Score 0.028720245
Marked as misclassified No
Message-id <1232213338.37.0.108210239108.issue4972@psf.upfronthosting.co.za>
In-reply-to
Content
In a program, I naturally wrote:

    >>> from ftplib import FTP
    >>> with FTP('ftp.somewhere.com') as ftp:
    ...     ftp.login('someone', 'pass')
    ...     ...

Until I realized this class is not equipped with __enter__ and __exit__,

I think it could be a simple and pleasant enhancement to add it.
History
Date User Action Args
2009-01-17 17:28:58tareksetrecipients: + tarek
2009-01-17 17:28:58tareksetmessageid: <1232213338.37.0.108210239108.issue4972@psf.upfronthosting.co.za>
2009-01-17 17:28:09tareklinkissue4972 messages
2009-01-17 17:28:08tarekcreate