[Python-Dev] Changing Clinic's output

Mark Lawrence breamoreboy at yahoo.co.uk
Tue Jan 7 21:46:41 CET 2014


On 07/01/2014 19:53, Antoine Pitrou wrote:
>
> Hello,
>
> Several core developers a bit unhappy with the way Argument Clinic
> currently scatters generated code into hand-written C modules. The
> opinion is that it makes C files more confusing and annoying to
> navigate through.
>
> Several solutions have been proposed:
> - move all generated code to separate C files, which would then be
>    #included'd into the main module file
>
> - gather all generated code to a single place in the C module file, for
>    example near the end (Larry's "accumulator" idea)
>
> - prefix all Clinic-generated lines with a recognizable marker, e.g.
>    "/* AC */"
>
> What do you think?
>
> Regards
>
> Antoine.
>
>

Maybe overkill but why not follow 3 with 2 at the end of the file, the 
marker to be a very clear /* Generated by Argument Clinic - DO NOT EDIT 
BELOW THIS LINE */ or whatever wording is appropriate in this case.

-- 
My fellow Pythonistas, ask not what our language can do for you, ask 
what you can do for our language.

Mark Lawrence



More information about the Python-Dev mailing list