Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-2218

[Python] PythonFile should infer mode when not given

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.8.0
    • Fix Version/s: 0.9.0
    • Component/s: Python

      Description

      The following is clearly not optimal:

      >>> f = open('README.md', 'r')
      >>> pa.PythonFile(f).mode
      'wb'
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pitrou Antoine Pitrou
                Reporter:
                pitrou Antoine Pitrou
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: