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 larry, serhiy.storchaka, zach.ware
Date 2014-01-21.07:49:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Serhiy: PyDoc_VAR is used in the "two-pass" approach as a forward declaration for docstrings.  Imagine if, in winsound.c, sound_methods was defined above the "dump buffer" block.  The expansion of WINSOUND_PLAYSOUND_METHODDEF would include a reference to winsound_PlaySound__doc__, which hadn't been defined yet.

winsound.c is simple enough, it doesn't need the two-pass approach.  But two-pass would work well for _pickle.c, where there are four or five PyMethodDef structures in the middle of the file.  Part of this is just Zachary experimenting with two-pass.
Date User Action Args
2014-01-21 07:49:51larrysetrecipients: + larry, zach.ware, serhiy.storchaka
2014-01-21 07:49:51larrysetmessageid: <>
2014-01-21 07:49:51larrylinkissue20323 messages
2014-01-21 07:49:51larrycreate