Opened 9 years ago

Closed 4 years ago

#2 closed defect (fixed)

Make PyGreSQL work with Python 3.x

Reported by: cito Owned by: darcy
Priority: major Milestone: 5.0
Component: C Module Version: 4.0
Keywords: Py3 Cc:

Description (last modified by cito)

PyGreSQL so far only works with Python 2.x, we should make it work with Python 3.x, too.

This has been discussed on the mailing list already (e.g. here and here) and we decided to create a common codebase for Py 2.x and 3.x starting with Pygres 5.0. We can use 2to3 and preprocessor macros to adapt the common codebase to Python 3.

See for some guidelines.

Change History (3)

comment:1 Changed 9 years ago by cito

  • Description modified (diff)

comment:2 Changed 9 years ago by cito

  • Description modified (diff)

comment:3 Changed 4 years ago by cito

  • Resolution set to fixed
  • Status changed from new to closed

The trunk as of r620 now works with Python 3.x, all the tests pass in both Python 2 and Python 3.

Btw, we did not even need to use 2to3 or the six module for the Python code, just some preprocessor macros taken from py3c.

So this ticket can be considered done.

Note: See TracTickets for help on using tickets.