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 is that actually no, the tests don't need to be changed, since they run in Python. When you run the tests with Python 2, int are normal integers, and when you run them with Python 3, int are long integers. So they always test the right thing. The only place where we need case distinctions is the C code. But as I said by using clever macros such as those from py3c that can be minimized.
Maybe what got you confused is that long ints are called "PyLong" in C code but "int" in Python 3 code.
Probably it's better I just go and make the changes so you see what I mean ;-)
-- Christoph _______________________________________________ PyGreSQL mailing list [email protected] https://mail.vex.net/mailman/listinfo.cgi/pygresql
