Author ArthurGoldberg
Recipients ArthurGoldberg, docs@python
Date 2017-04-06.02:29:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1491445776.09.0.388961752083.issue30002@psf.upfronthosting.co.za>
In-reply-to
Content
The core example on this page starts:

from distutils.core import setup, Extension

module1 = Extension('demo',
                    sources = ['demo.c'])

...

I suggest that 'sources = ['demo.c']' be changed to 'sources = ['demomodule.c']', because this would make the example consistent with https://docs.python.org/3.6/extending/extending.html which says: "Begin by creating a file spammodule.c. (Historically, if a module is called spam, the C file containing its implementation is called spammodule.c; ... )"
This minor change may help encourage this standard practice.

Arthur
History
Date User Action Args
2017-04-06 02:29:36ArthurGoldbergsetrecipients: + ArthurGoldberg, docs@python
2017-04-06 02:29:36ArthurGoldbergsetmessageid: <1491445776.09.0.388961752083.issue30002@psf.upfronthosting.co.za>
2017-04-06 02:29:36ArthurGoldberglinkissue30002 messages
2017-04-06 02:29:35ArthurGoldbergcreate