Avro
  1. Avro
  2. AVRO-854

python DataFileWriter and DataFileReader should implement __enter__ and __exit__

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.5.1
    • Fix Version/s: 1.6.2
    • Component/s: python
    • Labels:
      None
    • Tags:
      python

      Description

      I think The python classes

      avio.datafile.DataFileWriter
      avio.datafile.DataFileReader
      

      should implement the methods

      __enter__
      __exit__
      

      So that they can be used in with statements as context managers

      see http://docs.python.org/release/2.5.2/lib/typecontextmanager.html

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Harsh J
            Reporter:
            Jeremy Lewi
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development