File: README.txt

package info (click to toggle)
python3.13 3.13.5-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 121,584 kB
  • sloc: python: 702,544; ansic: 653,661; xml: 31,250; sh: 5,757; cpp: 4,326; makefile: 1,980; objc: 787; lisp: 502; javascript: 213; asm: 74; csh: 12
file content (10 lines) | stat: -rw-r--r-- 708 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
Tests in this directory are compiled into the _testcapi extension.
The main file for the extension is Modules/_testcapimodule.c, which
calls `_PyTestCapi_Init_*` from these functions.

General guideline when writing test code for C API.
* Use Argument Clinic to minimise the amount of boilerplate code.
* Add a newline between the argument spec and the docstring.
* If a test description is needed, make sure the added docstring clearly and succinctly describes purpose of the function.
* DRY, use the clone feature of Argument Clinic.
* Try to avoid adding new interned strings; reuse existing parameter names if possible. Use the `as` feature of Argument Clinic to override the C variable name, if needed.