GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — cpython/Modules/_testcapi at 3.14 · python/cpython

Expand file tree

/

_testcapi

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
 
 
/

_testcapi

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
clinic
clinic
 
 
README.txt
README.txt
 
 
abstract.c
abstract.c
 
 
buffer.c
buffer.c
 
 
bytes.c
bytes.c
 
 
code.c
code.c
 
 
codec.c
codec.c
 
 
complex.c
complex.c
 
 
config.c
config.c
 
 
datetime.c
datetime.c
 
 
dict.c
dict.c
 
 
docstring.c
docstring.c
 
 
exceptions.c
exceptions.c
 
 
file.c
file.c
 
 
float.c
float.c
 
 
frame.c
frame.c
 
 
function.c
function.c
 
 
gc.c
gc.c
 
 
getargs.c
getargs.c
 
 
hash.c
hash.c
 
 
heaptype.c
heaptype.c
 
 
immortal.c
immortal.c
 
 
import.c
import.c
 
 
list.c
list.c
 
 
long.c
long.c
 
 
mem.c
mem.c
 
 
monitoring.c
monitoring.c
 
 
numbers.c
numbers.c
 
 
object.c
object.c
 
 
parts.h
parts.h
 
 
pyatomic.c
pyatomic.c
 
 
run.c
run.c
 
 
set.c
set.c
 
 
structmember.c
structmember.c
 
 
time.c
time.c
 
 
tuple.c
tuple.c
 
 
type.c
type.c
 
 
unicode.c
unicode.c
 
 
util.h
util.h
 
 
vectorcall.c
vectorcall.c
 
 
watchers.c
watchers.c
 
 
weakref.c
weakref.c
 
 

README.txt

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.
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.