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

Support for python3

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.7.5
    • Fix Version/s: 1.7.6
    • Component/s: python
    • Labels:
      None

      Description

      Hi,
      I'd need to use Avro from Python3, which would require essentially the following changes, which I am happy to contribute:

      • rewrite except statements according to new syntax
      • rewrite print statements according to new syntax
      • basestring becomes str
      • update some imports (StringIO becomes io.StringIO, httplib becomes http.client)

      This would apparently require branching the python code to maintain a version for python2 and a separate version for python3.

      Any thoughts on how to approach this?
      Thanks!

        Attachments

        1. AVRO-1382.20131203-001922.diff
          230 kB
          Christophe Taton
        2. AVRO-1382.20140101-123233-0800.diff
          239 kB
          Christophe Taton
        3. AVRO-1382.20140107-231626-0800.diff
          236 kB
          Christophe Taton
        4. AVRO-1382.20140108-165947-0800.diff
          235 kB
          Christophe Taton
        5. AVRO-1382.20140109-232110-0800.diff
          236 kB
          Christophe Taton

          Activity

            People

            • Assignee:
              kryzthov Christophe Taton
              Reporter:
              kryzthov Christophe Taton
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: