forked from rainwoodman/tinypy
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathHACKING.txt
More file actions
18 lines (14 loc) · 686 Bytes
/
Copy pathHACKING.txt
File metadata and controls
18 lines (14 loc) · 686 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
function namespaces:
Functions are into several namespaces from lower-level to higher-level:
- `tpd_*` : tinypy data structures;
- `tp_*` : tinypy interpreter C-API;
arguments from C arguments;
functions may return any C value;
return values are usually tracked by gc,
unless the name indicates untracked (ending with _nt)
add the result to gc before dropping to the Python land.
- `tpy_*` : python language C-API
arguments from local scope parameter list
functions always return tp_obj;
return values are usually tracked by gc if it should,
unless the name indicates untracked.