Debian Codegraph @

docs/source/developer_notes/index.rst

raw
1 .. _developer:
2
3 Developer notes
4 ================
5
6 These notes are meant to help developers and contributors with regards to some
7 details of the implementation and coding style of the project.
8
9 C++ codebase
10 ------------
11
12 The C++ codebase currently targets C++11 compliance. It is header-only since
13 one of the focus of the library is speed.
14
15
16 Python bindings
17 ---------------
18
19 Python bindings targets Python 3.7 and above. The bindings are hand-written and
20 relies on cppy (https://github.com/nucleic/cppy). Kiwisolver tries to use a
21 reasonably modern C API and to support sub-interpreter, this has a couple of
22 consequences:
23
24 - all the non exported symbol are enclosed in anonymous namespaces
25 - kiwisolver does not use static types and only dynamical types (note that the
26 type slots and related structures are stored in a static variable)
27 - modules use the multi-phases initialization mechanism as defined in
28 PEP 489 -- Multi-phase extension module initialization
29 - static variables use is limited to type slots, method def