Ticket #30 (closed enhancement: fixed)

Opened 2 years ago

Last modified 15 months ago

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

Changed 2 years ago by schwa

  • status changed from new to assigned
  • summary changed from Add support for the with statementf to Add support for the with statement

Changed 2 years ago by schwa

  • milestone changed from 2.4 to 2.3

Changed 15 months ago by schwa

  • status changed from assigned to closed
  • resolution set to fixed

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.