This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author larry
Recipients Arfrever, Jim.Jewett, Trundle, alex, asvetlov, barry, bfroehle, chris.jerdonek, daniel.urban, david.villa, dmalcolm, eric.smith, ezio.melotti, gregory.p.smith, gvanrossum, jcea, jkloth, larry, mark.dickinson, ncoghlan, pitrou, scoder, serhiy.storchaka, skrah, v+python
Date 2013-02-26.11:23:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <jo813k0aaobdas9rmlwnfvhi.1361877787298@email.android.com>
In-reply-to
Content
write_clinic_file tells Clinic to start writing to the clinic file, which I think is best to do at the very top of the file.  include_clinic_file spits out the #include, which you probably want near the bottom of the file, just before the static module declarations.  You can't put the #include at the top because it may refer to typedefs declared further down. 

Antoine Pitrou <report@bugs.python.org> wrote:

>
>Antoine Pitrou added the comment:
>
>> * Antoine: I've implemented shunting the bulk of Argument Clinic's
>>   output into a separate file.  Please see Modules/zlibmodule.c
>>   and Modules/zlibmodule_clinic.c for more.
>
>Interesting, thanks :-)
>Why do you need both clinic.write_clinic_file() and clinic.include_clinic_file() ?
>
>> I don't suppose we can get some decisions made and some code checked
>> in before the PyCon sprints...?
>
>I suppose that depends on how quick everyone is.
>But code can be written before the PEP is finally accepted, of course.
>
>----------
>title: Integrate "Argument Clinic" specialized preprocessor into CPython trunk -> Integrate "Argument Clinic" specialized preprocessor	into CPython trunk
>
>_______________________________________
>Python tracker <report@bugs.python.org>
><http://bugs.python.org/issue16612>
>_______________________________________
History
Date User Action Args
2013-02-26 11:23:13larrysetrecipients: + larry, gvanrossum, barry, gregory.p.smith, jcea, mark.dickinson, ncoghlan, pitrou, scoder, eric.smith, jkloth, ezio.melotti, Arfrever, v+python, alex, Trundle, asvetlov, skrah, dmalcolm, daniel.urban, chris.jerdonek, Jim.Jewett, serhiy.storchaka, bfroehle, david.villa
2013-02-26 11:23:13larrylinkissue16612 messages
2013-02-26 11:23:13larrycreate