Message208623
| 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 |
<1390290591.48.0.853575335004.issue20323@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2014年01月21日 07:49:51 | larry | set | recipients:
+ larry, zach.ware, serhiy.storchaka |
| 2014年01月21日 07:49:51 | larry | set | messageid: <1390290591.48.0.853575335004.issue20323@psf.upfronthosting.co.za> |
| 2014年01月21日 07:49:51 | larry | link | issue20323 messages |
| 2014年01月21日 07:49:51 | larry | create |
|