Uploaded image for project: 'Avro'
  1. Avro
  2. AVRO-854

python DataFileWriter and DataFileReader should implement __enter__ and __exit__

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: 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

        Attachments

          Activity

            People

            • Assignee:
              qwertymaniac Harsh J
              Reporter:
              jeremy@lewi.us Jeremy Lewi
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: