1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 15:53:03 +04:00

fix: convert arguments names that are keywords reserved by Python

This commit is contained in:
Vadim Levin
2021-08-01 11:59:16 +03:00
parent cff0168f3a
commit 531ea5b3a2
3 changed files with 35 additions and 0 deletions
@@ -116,6 +116,12 @@ String dumpRange(const Range& argument)
}
}
CV_WRAP static inline
String testReservedKeywordConversion(int positional_argument, int lambda = 2, int from = 3)
{
return format("arg=%d, lambda=%d, from=%d", positional_argument, lambda, from);
}
CV_WRAP static inline
void testRaiseGeneralException()
{