> > That's a rather long thread. Was any conclusion reached? I'm not sure
> > how introducing a set of aliases will help merging 2.6 code to 3.0.
> > Can you or Christian describe the proposed approach in more detail?
> As far as I can see, no objections were raised in that thread.
Hm. I had wanted to register a complaint, but I guess I was too busy.
On Sun, Mar 16, 2008 at 12:09 PM, Christian Heimes <
lists@cheimes.de> wrote:
> Guido van Rossum wrote:
> > -1. This will make merging code from 2.6 harder, and causes more work
> > for porting C extensions.
>
> I'm happy to pay the price for the sake of a clean and easy-to-recall C
> API.
>
> The for the C extension problem I already proposed a solution in the
> thread Benjamin mentioned before.
>
> #include "Python.h"
> #if PY_VERSION_HEX > 0x03000000
> #include "python2_compat.h"
> #endif
>
> Where python2_compat provides aliases for PyInt and PyString:
>
> #define PyInt_Spam PyLong_Spam
> ...
> #define PyString_Egg PyBytes_Egg
So this doesn't address merges at all. Suppose we have some C code