Am 11.07.2010 22:03, schrieb Christoph Zwerschke:
> Am 11.07.2010 21:06 schrieb "Martin v. Löwis":
>> My recommendation would be to support 3.x in the current code base.
>> If done correctly, there shouldn't be any significant for 2.x users.
> 
> If I understand correctly, you're recommending the first approach then,
> using 2to3 (use_2to3=True in the setup file). Sounds ok to me, and we
> can still resort to maintaining two codebases if we hit a wall.

Actually, it seems that the wrapper modules (pg.py in particular) can
be written using approach 2 (same code for 2.x and 3.x) without effort.
This leaves the C code, which also can be maintained in a single source
(patch follows shortly), but using preprocessor macros instead of 2to3.

Regards,
Martin
_______________________________________________
PyGreSQL mailing list
[email protected]
http://mailman.vex.net/mailman/listinfo/pygresql

Reply via email to