6 lines
507 B
ReStructuredText
6 lines
507 B
ReStructuredText
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.
|