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@python
components: Documentation
messages: 291203
nosy: ArthurGoldberg, docs@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue30002>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to