/
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
Cython
/
Utility
/
/opt/cloudlinux/venv/lib/python3.11/site-packages/Cython/Utility
mkdir
upload
Name
Size
Mode
Actions
__pycache__/
-
0755
rm
arrayarray.h
4089
0644
edit
dl
rm
AsyncGen.c
41559
0644
edit
dl
rm
Buffer.c
29654
0644
edit
dl
rm
Builtins.c
16818
0644
edit
dl
rm
Capsule.c
505
0644
edit
dl
rm
CConvert.pyx
4338
0644
edit
dl
rm
CMath.c
2566
0644
edit
dl
rm
CommonStructures.c
2558
0644
edit
dl
rm
Complex.c
10062
0644
edit
dl
rm
Coroutine.c
90224
0644
edit
dl
rm
CpdefEnums.pyx
1893
0644
edit
dl
rm
CppConvert.pyx
6098
0644
edit
dl
rm
CppSupport.cpp
2234
0644
edit
dl
rm
CythonFunction.c
46746
0644
edit
dl
rm
Embed.c
6854
0644
edit
dl
rm
Exceptions.c
27285
0644
edit
dl
rm
ExtensionTypes.c
11664
0644
edit
dl
rm
FunctionArguments.c
12040
0644
edit
dl
rm
ImportExport.c
23448
0644
edit
dl
rm
MemoryView.pyx
49749
0644
edit
dl
rm
MemoryView_C.c
29072
0644
edit
dl
rm
ModuleSetupCode.c
58755
0644
edit
dl
rm
ObjectHandling.c
89025
0644
edit
dl
rm
Optimize.c
45184
0644
edit
dl
rm
Overflow.c
12424
0644
edit
dl
rm
Printing.c
5103
0644
edit
dl
rm
Profile.c
17922
0644
edit
dl
rm
StringTools.c
42215
0644
edit
dl
rm
TestCythonScope.pyx
1595
0644
edit
dl
rm
TestCyUtilityLoader.pyx
152
0644
edit
dl
rm
TestUtilityLoader.c
279
0644
edit
dl
rm
TypeConversion.c
36333
0644
edit
dl
rm
__init__.py
1159
0644
edit
dl
rm
Edit:
/opt/cloudlinux/venv/lib/python3.11/site-packages/Cython/Utility/CppSupport.cpp
(2234B)
/////////////// CppExceptionConversion.proto /////////////// #ifndef __Pyx_CppExn2PyErr #include <new> #include <typeinfo> #include <stdexcept> #include <ios> static void __Pyx_CppExn2PyErr() { // Catch a handful of different errors here and turn them into the // equivalent Python errors. try { if (PyErr_Occurred()) ; // let the latest Python exn pass through and ignore the current one else throw; } catch (const std::bad_alloc& exn) { PyErr_SetString(PyExc_MemoryError, exn.what()); } catch (const std::bad_cast& exn) { PyErr_SetString(PyExc_TypeError, exn.what()); } catch (const std::bad_typeid& exn) { PyErr_SetString(PyExc_TypeError, exn.what()); } catch (const std::domain_error& exn) { PyErr_SetString(PyExc_ValueError, exn.what()); } catch (const std::invalid_argument& exn) { PyErr_SetString(PyExc_ValueError, exn.what()); } catch (const std::ios_base::failure& exn) { // Unfortunately, in standard C++ we have no way of distinguishing EOF // from other errors here; be careful with the exception mask PyErr_SetString(PyExc_IOError, exn.what()); } catch (const std::out_of_range& exn) { // Change out_of_range to IndexError PyErr_SetString(PyExc_IndexError, exn.what()); } catch (const std::overflow_error& exn) { PyErr_SetString(PyExc_OverflowError, exn.what()); } catch (const std::range_error& exn) { PyErr_SetString(PyExc_ArithmeticError, exn.what()); } catch (const std::underflow_error& exn) { PyErr_SetString(PyExc_ArithmeticError, exn.what()); } catch (const std::exception& exn) { PyErr_SetString(PyExc_RuntimeError, exn.what()); } catch (...) { PyErr_SetString(PyExc_RuntimeError, "Unknown exception"); } } #endif /////////////// PythranConversion.proto /////////////// template <class T> auto __Pyx_pythran_to_python(T &&value) -> decltype(to_python( typename pythonic::returnable<typename std::remove_cv<typename std::remove_reference<T>::type>::type>::type{std::forward<T>(value)})) { using returnable_type = typename pythonic::returnable<typename std::remove_cv<typename std::remove_reference<T>::type>::type>::type; return to_python(returnable_type{std::forward<T>(value)}); }
Save
cmd:
run