python / cpython

The Python programming language
https://www.python.org
Other
63.5k stars 30.41k forks source link

Suggested changes for https://docs.python.org/3.6/extending/extending.html #74183

Open c64c32e3-fb5d-4a19-b893-90a7f74d5b93 opened 7 years ago

c64c32e3-fb5d-4a19-b893-90a7f74d5b93 commented 7 years ago
BPO 29997
Nosy @freddrake, @artgoldberg

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields: ```python assignee = None closed_at = None created_at = labels = ['type-bug', 'docs'] title = 'Suggested changes for https://docs.python.org/3.6/extending/extending.html' updated_at = user = 'https://github.com/artgoldberg' ``` bugs.python.org fields: ```python activity = actor = 'fdrake' assignee = 'docs@python' closed = False closed_date = None closer = None components = ['Documentation'] creation = creator = 'ArthurGoldberg' dependencies = [] files = [] hgrepos = [] issue_num = 29997 keywords = [] message_count = 2.0 messages = ['291192', '291193'] nosy_count = 3.0 nosy_names = ['fdrake', 'docs@python', 'ArthurGoldberg'] pr_nums = [] priority = 'normal' resolution = None stage = None status = 'open' superseder = None type = 'behavior' url = 'https://bugs.python.org/issue29997' versions = ['Python 3.6'] ```

c64c32e3-fb5d-4a19-b893-90a7f74d5b93 commented 7 years ago

I've just taught myself how to write C extensions to Python with https://docs.python.org/3.6/extending/extending.html. I think it's quite good.

Nevertheless, I've some suggested improvements. These all use the vi s/// replacement syntax.

c64c32e3-fb5d-4a19-b893-90a7f74d5b93 commented 7 years ago

Also,

Incorrect number agreement: s/strategy that minimizes this kind of errors/strategy that minimizes this kind of error/