Skip to content

Conversation

@shreyanavigyan
Copy link
Contributor

@shreyanavigyan shreyanavigyan commented Apr 10, 2021

In the example code of the Extending Python with C/C++ documentation the pmodule variable (that stores the return value of PyImport_ImportModule) was never declared. This PR fixes the problem by declaring and initializing the pmodule variable.

(This PR is for documentation version 3.8.)

https://bugs.python.org/issue43739

… initialize the pmodule variable to be of the right type.
@bedevere-bot bedevere-bot added docs Documentation in the Doc dir awaiting review labels Apr 10, 2021
@shreyanavigyan shreyanavigyan changed the title [3.8] bpo-43739: Fixing the example code in Doc/extending/extending.rst to declare and initialize the pmodule variable to be of the right type [3.8] bpo-43739: Fixing the example code in Doc/extending/extending.rst to declare and initialize the pmodule variable to be of the right type (GH-25331) Apr 10, 2021
@rhettinger
Copy link
Contributor

Please make this PR against the master branch. That will make it easier for us to bots to backport to the older branches.

@rhettinger rhettinger requested a review from scoder April 10, 2021 15:52
@rhettinger rhettinger closed this Apr 10, 2021
@shreyanavigyan shreyanavigyan deleted the fix-extending-docs38 branch April 11, 2021 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting merge docs Documentation in the Doc dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants