]> granicus.if.org Git - python/commit
bpo-26868: Fix example usage of PyModule_AddObject. (GH-15725)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 12 Sep 2019 12:26:46 +0000 (05:26 -0700)
committerGitHub <noreply@github.com>
Thu, 12 Sep 2019 12:26:46 +0000 (05:26 -0700)
commit535863e3f599a6ad829204d83f144c91e44de443
tree183f007542a5f3ceaa229c0bc418f1168940baaa
parent14afe203d6937069c66b7e9c4a9fc0db49b32c19
bpo-26868: Fix example usage of PyModule_AddObject. (GH-15725)

* Add a note to the PyModule_AddObject docs.

* Correct example usages of PyModule_AddObject.

* Whitespace.

* Clean up wording.

* ðŸ“œðŸ¤– Added by blurb_it.

* First code review.

* Add < 0 in the tests with PyModule_AddObject
(cherry picked from commit 224b8aaa7e8f67f748e8b7b6a4a77a25f6554651)

Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
Doc/c-api/module.rst
Doc/extending/extending.rst
Doc/extending/newtypes_tutorial.rst
Doc/includes/custom.c
Doc/includes/custom2.c
Doc/includes/custom3.c
Doc/includes/custom4.c
Doc/includes/sublist.c
Misc/NEWS.d/next/Documentation/2019-09-07-15-55-46.bpo-26868.Raw0Gd.rst [new file with mode: 0644]