[ 
https://issues.apache.org/jira/browse/AVRO-854?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Doug Cutting updated AVRO-854:
------------------------------

       Resolution: Fixed
    Fix Version/s: 1.6.2
           Status: Resolved  (was: Patch Available)

I committed this.  Thanks, Harsh!
                
> python DataFileWriter and DataFileReader should implement __enter__ and 
> __exit__
> --------------------------------------------------------------------------------
>
>                 Key: AVRO-854
>                 URL: https://issues.apache.org/jira/browse/AVRO-854
>             Project: Avro
>          Issue Type: New Feature
>          Components: python
>    Affects Versions: 1.5.1
>            Reporter: Jeremy Lewi
>            Assignee: Harsh J
>            Priority: Minor
>             Fix For: 1.6.2
>
>         Attachments: AVRO-854.patch
>
>
> I think The python classes 
> {noformat}
> avio.datafile.DataFileWriter
> avio.datafile.DataFileReader
> {noformat}
> should implement the methods
> {noformat}
> __enter__
> __exit__
> {noformat}
> So that they can be used in with statements as context managers
> see http://docs.python.org/release/2.5.2/lib/typecontextmanager.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to