[PyGreSQL] PyGreSQL Commit r553 - in trunk: docs module

2015-11-20 Thread darcy
Author: cito Date: Fri Nov 20 06:16:03 2015 New Revision: 553 Log: Require at least Python 2.6 for the trunk (5.x) Support for even older Python versions is maintained in the 4.x branch. The goal for 5.x is to be a single-source code for both Python 2 and 3, and this is only possible by dropping

[PyGreSQL] PyGreSQL Commit r555 - branches/4.x/module trunk/module

2015-11-20 Thread darcy
Author: cito Date: Fri Nov 20 10:04:44 2015 New Revision: 555 Log: Proper testing of the version number Modified: branches/4.x/module/TEST_PyGreSQL_classic_functions.py branches/4.x/module/setup.py trunk/module/TEST_PyGreSQL_classic_functions.py Modified:

[PyGreSQL] PyGreSQL Commit r556 - trunk/module

2015-11-20 Thread darcy
Author: cito Date: Fri Nov 20 10:13:42 2015 New Revision: 556 Log: Use the modern except .. as syntax in the trunk Modified: trunk/module/TEST_PyGreSQL_classic_connection.py trunk/module/TEST_PyGreSQL_classic_dbwrapper.py Modified: trunk/module/TEST_PyGreSQL_classic_connection.py

[PyGreSQL] PyGreSQL Commit r551 - trunk/module

2015-11-20 Thread darcy
Author: cito Date: Fri Nov 20 05:37:49 2015 New Revision: 551 Log: StandardError has been removed in Python 3. We now subclass from Exception instead, even in Python 2. This is a slight incompatibility, but it has never been documented anyway and makes the behavior more uniform. Modified:

[PyGreSQL] PyGreSQL Commit r554 - branches/4.x/module

2015-11-20 Thread darcy
Author: darcy Date: Fri Nov 20 06:32:39 2015 New Revision: 554 Log: The current source compiles without warnings. Let's keep it that way. Modified: branches/4.x/module/setup.py Modified: branches/4.x/module/setup.py

[PyGreSQL] PyGreSQL Commit r561 - trunk/module

2015-11-20 Thread darcy
Author: cito Date: Fri Nov 20 11:54:55 2015 New Revision: 561 Log: Keep the old names on the Python level Reverted some renaming in r530 that was probably done by mistake, as we don't want to change the method names on the Python level. Particularly, the proper names should appear in the

[PyGreSQL] PyGreSQL Commit r557 - trunk/module

2015-11-20 Thread darcy
Author: cito Date: Fri Nov 20 10:23:56 2015 New Revision: 557 Log: Use print the modern way as a function Modified: trunk/module/TEST_PyGreSQL_classic_connection.py Modified: trunk/module/TEST_PyGreSQL_classic_connection.py

[PyGreSQL] PyGreSQL Commit r559 - branches/4.x/module trunk/module

2015-11-20 Thread darcy
Author: cito Date: Fri Nov 20 11:09:28 2015 New Revision: 559 Log: Add test for printing large objects Again, note that the print function does not work with StringIO. Modified: branches/4.x/module/TEST_PyGreSQL_classic_connection.py branches/4.x/module/TEST_PyGreSQL_classic_largeobj.py

[PyGreSQL] PyGreSQL Commit r560 - trunk/module

2015-11-20 Thread darcy
Author: cito Date: Fri Nov 20 11:27:28 2015 New Revision: 560 Log: Remove some more code for Python < 2.5 in the trunk Modified: trunk/module/pgmodule.c Modified: trunk/module/pgmodule.c == ---

Re: [PyGreSQL] Python 3 porting - more ideas

2015-11-20 Thread D'Arcy J.M. Cain
On Fri, 20 Nov 2015 14:08:23 +0100 Christoph Zwerschke wrote: > Regarding the int/long and str/unicode dichotomy in Python 2/3, the I am still having errors in my 2.7 installation on the 4.x branch. It seems that something between the database and the query result is converting

Re: [PyGreSQL] Python 3 porting - more ideas

2015-11-20 Thread Christoph Zwerschke
Am 20.11.2015 um 18:08 schrieb D'Arcy J.M. Cain: I am still having errors in my 2.7 installation on the 4.x branch. It seems that something between the database and the query result is converting small ints (and any ints) to long. Are you not seeing that? I am using PostgreSQL 9.3.5 and

Re: [PyGreSQL] Python 3 porting - more ideas

2015-11-20 Thread Christoph Zwerschke
Am 20.11.2015 um 20:16 schrieb D'Arcy J.M. Cain: I agree with your reasons. The only thing is that the tests are going to need to be changed based on the version of Python as well. There is probably going to be an awful lot of places to introduce conditional code in the tests. The good thing

[PyGreSQL] PyGreSQL Commit r565 - branches/4.x/module trunk/module

2015-11-20 Thread darcy
Author: cito Date: Fri Nov 20 16:44:55 2015 New Revision: 565 Log: Using a better locale name for tests In the test we need to force Postgres to use a money format that does not use a dot as decimal point. Maybe we should try several common locale names to get this test running on different