]> granicus.if.org Git - python/commit
bpo-26868: Fix example usage of PyModule_AddObject. (#15725)
authorBrandt Bucher <brandtbucher@gmail.com>
Thu, 12 Sep 2019 12:11:20 +0000 (05:11 -0700)
committerStéphane Wirtel <stephane@wirtel.be>
Thu, 12 Sep 2019 12:11:20 +0000 (13:11 +0100)
commit224b8aaa7e8f67f748e8b7b6a4a77a25f6554651
tree209bec1d2dd42b404f13c42c3c8e98988908a863
parent967b84c913c7b09ae2fc86272cb9373415e2beaf
bpo-26868: Fix example usage of PyModule_AddObject. (#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
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]