Opened 11 years ago

Closed 10 years ago

#30 closed enhancement (fixed)

Add support for the with statement

Reported by: schwa Owned by: schwa
Priority: major Milestone: 2.3
Component: Library Version:
Keywords: with statement, __enter__, __exit__, FTPHost, FTPFile Cc:

Description

Roger Demetrescu suggests in this mail to add support for Python's with statement, introduced in Python 2.5.

The example Roger gives is about using the with statement on FTPHost objects, but I think even more it should also be applied to FTPFile objects.

Stefan

Change History (3)

comment:1 Changed 11 years ago by schwa

Status: newassigned
Summary: Add support for the with statementfAdd support for the with statement

comment:2 Changed 11 years ago by schwa

Milestone: 2.42.3

comment:3 Changed 10 years ago by schwa

Resolution: fixed
Status: assignedclosed

Support for the with statement has been added for FTPHost and FTPFile objects as of ftputil version 2.3.

Note: See TracTickets for help on using tickets.