summaryrefslogtreecommitdiffstats
path: root/Tools/clinic/libclinic/converter.py
Commit message (Collapse)AuthorAgeFilesLines
* gh-113317: Add Codegen class to Argument Clinic (#117626)Victor Stinner2024-04-111-3/+6
| | | | | | | | | | | * Move ifndef_symbols, includes and add_include() from Clinic to Codegen. Add a 'codegen' (Codegen) attribute to Clinic. * Remove libclinic.crenderdata module: move code to libclinic.codegen. * BlockPrinter.print_block(): remove unused 'limited_capi' argument. Remove also 'core_includes' parameter. * Add get_includes() methods. * Make Codegen.ifndef_symbols private. * Make Codegen.includes private. * Make CConverter.includes private.
* gh-113317: Argument Clinic: Add libclinic.converters module (#117315)Victor Stinner2024-04-021-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move the following converter classes to libclinic.converters: * PyByteArrayObject_converter * PyBytesObject_converter * Py_UNICODE_converter * Py_buffer_converter * Py_complex_converter * Py_ssize_t_converter * bool_converter * byte_converter * char_converter * defining_class_converter * double_converter * fildes_converter * float_converter * int_converter * long_converter * long_long_converter * object_converter * self_converter * short_converter * size_t_converter * slice_index_converter * str_converter * unicode_converter * unsigned_char_converter * unsigned_int_converter * unsigned_long_converter * unsigned_long_long_converter * unsigned_short_converter Move also the following classes to libclinic.converters: * buffer * robuffer * rwbuffer Move the following functions to libclinic.converters: * correct_name_for_self() * r() * str_converter_key() Move Null and NULL to libclinic.utils.
* gh-85283: Build pwd extension with the limited C API (#116841)Victor Stinner2024-03-151-5/+4
| | | | Argument Clinic now uses the PEP 737 "%T" format to format type name for the limited C API.
* gh-113317, AC: Add libclinic.converter module (#116821)Victor Stinner2024-03-141-0/+534
* Move CConverter class to a new libclinic.converter module. * Move CRenderData and Include classes to a new libclinic.crenderdata module.