Mastering-Python-2e-exercises/CH_17_c_and_cpp_extensions
2022-04-30 00:46:58 +02:00
..

Chapter 17 - c and cpp extensions
=======================================================================================================================

1. Try to sort a list of numbers using `ctypes`, `CFFI`, and with a native extension. You can use the `qsort` function in `stdlib`.
2. Try to make the `custom_sum` function we created safer by adding proper errors for overflow/underflow issues. Additionally, catch the errors when summing multiple numbers that only overflow or underflow in summation.