<p dir="ltr"><br>
On 8 Jan 2014 06:24, "Brett Cannon" <<a href="mailto:brett@python.org">brett@python.org</a>> wrote:<br>
><br>
><br>
><br>
><br>
> On Tue, Jan 7, 2014 at 4:44 PM, Stefan Krah <<a href="mailto:stefan@bytereef.org">stefan@bytereef.org</a>> wrote:<br>
>><br>
>> Antoine Pitrou <<a href="mailto:solipsis@pitrou.net">solipsis@pitrou.net</a>> wrote:<br>
>> > Several solutions have been proposed:<br>
>> > - move all generated code to separate C files, which would then be<br>
>> >   #included'd into the main module file<br>
>><br>
>> +1 for the reasons that Serhiy has listed.  Additionally, if custom parsers<br>
>> are implemented, the generated code will take up even more space (look e.g.<br>
>> at Cython's custom parsers).<br>
><br>
><br>
> Guido has already said he hates constructing files that way so that simply isn't going to happen.<br>
><br>
> I personally don't care about this whole discussion (and I suspect people being quiet don't either). At this point the amount of arguing on this topic could have been used more constructively converting code and then, if necessary, tweaking the output of Argument Clinic later.</p>

<p dir="ltr">I haven't had a chance to look at any of the newly converted code (due to vacation and <a href="http://linux.conf.au">linux.conf.au</a>), so I'm happy to take the word of the folks doing the conversion that the current behaviour is inconvenient.</p>

<p dir="ltr">I think the split VCS history where changing clinic's output without changing the function declarations *doesn't* show up as altering the manually maintained source files (but only clinic and separate generated "XYZ_clinic.c" files) is a compelling practical argument in favour of the split file approach, even if it makes execution jump around a little strangely.</p>

<p dir="ltr">Failing that, I like Larry's proposal to switch to generating only prototypes inline and having the wrapper implementations at a common point in each file, reducing the visible boilerplate when looking at individual functions.</p>

<p dir="ltr">Cheers,<br>
Nick.</p>
<p dir="ltr">><br>
> _______________________________________________<br>
> Python-Dev mailing list<br>
> <a href="mailto:Python-Dev@python.org">Python-Dev@python.org</a><br>
> <a href="https://mail.python.org/mailman/listinfo/python-dev">https://mail.python.org/mailman/listinfo/python-dev</a><br>
> Unsubscribe: <a href="https://mail.python.org/mailman/options/python-dev/ncoghlan%40gmail.com">https://mail.python.org/mailman/options/python-dev/ncoghlan%40gmail.com</a><br>
><br>
</p>