#150 Support Python 3

PyXB 1.2.3
PyXB 1.1.3

It's time. The content model changes of #112 and most other known issues will be resolved first.


  • Peter A. Bigot

    Peter A. Bigot - 2013-09-17
    • status changed from new to accepted
    • milestone changed from PyXB 2.0.0 to PyXB 1.2.3

    Python 3 is supported by using the maintainer/2to3 script to convert the code to Python 3. As of now, the python3/next branch will have a fork off a "recent" commit in the next branch and will hold the results of this script; the same practice will occur with release 1.2.3 and subsequent releases.

    The intent is to have bindings work on Python 3.2 and higher. Earlier versions will mostly work but are not supported, primarily because Python 3.1.5 does not implement the context manager for unittest assertRaises properly resulting in gratuitous failures in the test suite.

  • Peter A. Bigot

    Peter A. Bigot - 2014-02-27
    • status changed from accepted to closed
    • resolution set to fixed

      commit d13db7df710d41a717b0f8bc860ce0c4dac4f4f8
      Author: Peter A. Bigot pab@pabigot.com
      Date: Thu Feb 27 15:52:12 2014 -0600

      trac/150: support Python 3
      Through the use of the six module, the current source works on all
      Pythons from 2.6 onwards.  (Some tests fail, mostly when the Python
      release does not support context managers for
      unittest.TestCase.assertRaises, but the framework works.)

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks