]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-113317: Argument Clinic: Add libclinic.converters module (#117315)
authorVictor Stinner <vstinner@python.org>
Tue, 2 Apr 2024 10:09:53 +0000 (12:09 +0200)
committerGitHub <noreply@github.com>
Tue, 2 Apr 2024 10:09:53 +0000 (10:09 +0000)
commit5fd1897ec51cb64ef7990ada538fcd8d9ca1f74b
tree957892a83948f09e0c094d1714318ce412921977
parent9dae05ee59eeba0e67af2a46f2a2907c9f8d7e4a
gh-113317: Argument Clinic: Add libclinic.converters module (#117315)

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.
Lib/test/test_clinic.py
Tools/clinic/clinic.py
Tools/clinic/libclinic/__init__.py
Tools/clinic/libclinic/converter.py
Tools/clinic/libclinic/converters.py [new file with mode: 0644]
Tools/clinic/libclinic/function.py
Tools/clinic/libclinic/utils.py