[docs] [issue33958] Unused variable in pur embedding example

Philip Kendall report at bugs.python.org
Mon Jun 25 15:56:29 EDT 2018


New submission from Philip Kendall <jorallan at gmail.com>:

Line 6 of the "Pure Embedding" example at https://docs.python.org/3/extending/embedding.html#pure-embedding :

PyObject *pName, *pModule, *pDict, *pFunc;

contains the pDict variable which is not used anywhere else in the code, giving a compiler warning. Simple fix: just remove pDict from the list of variables.

I can make a PR if you need one.

----------
assignee: docs at python
components: Documentation
messages: 320436
nosy: Philip Kendall, docs at python
priority: normal
severity: normal
status: open
title: Unused variable in pur embedding example
type: enhancement
versions: Python 3.6

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33958>
_______________________________________


More information about the docs mailing list