[Python-Dev] Const-correctness in C-API Object Protocol

Antoine Pitrou solipsis at pitrou.net
Wed Feb 23 00:36:33 CET 2011


Le mardi 22 février 2011 à 18:30 -0500, Alexander Belopolsky a écrit :
> On Tue, Feb 22, 2011 at 6:18 PM, Antoine Pitrou <solipsis at pitrou.net> wrote:
> ..
> > I don't think it's a good idea to backport visible API changes.
> > (someone successfully compiling on 2.7.N could then have users
> > complaining that compilation fails on 2.7.N-1).
> > Moreover, it doesn't really fix a bug.
> 
> That was the argument that I voiced
> http://bugs.python.org/issue1699259#msg119032, but I cannot really
> think of the code that would be broken by changing the type of an API
> function *argument* from char * to const char *.

To quote the message above: someone successfully compiling on 2.7.N
could then have users complaining that compilation fails on 2.7.N-1.
(note: *N-1*)




More information about the Python-Dev mailing list