[docs] [issue30002] Minor change to https://docs.python.org/3.6/extending/building.html

Arthur Goldberg report at bugs.python.org
Wed Apr 5 22:29:36 EDT 2017


New submission from Arthur Goldberg:

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

----------
assignee: docs at python
components: Documentation
messages: 291203
nosy: ArthurGoldberg, docs at python
priority: normal
severity: normal
status: open
title: Minor change to https://docs.python.org/3.6/extending/building.html
type: behavior
versions: Python 3.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30002>
_______________________________________


More information about the docs mailing list