Message214388
This really annoys me. I have to store the literals in char[] and then make a char*[] from them. It would be better if a simple array of string literals could be used. It would also require less data space because string literals could be merged by the compiler.
I don't know why PyArg_ParseTupleAndKeywords would ever modify the keywords array so it makes absolutely no sense to me for the array not to be const char*[].
In all cases I have seen PyArg_ParseTupleAndKeywords being used string literals were converted to char* (dropping const) which is far far worse than inefficient code. |
|
Date |
User |
Action |
Args |
2014-03-21 16:45:16 | h.venev | set | recipients:
+ h.venev |
2014-03-21 16:45:16 | h.venev | set | messageid: <1395420316.16.0.247771357348.issue21011@psf.upfronthosting.co.za> |
2014-03-21 16:45:16 | h.venev | link | issue21011 messages |
2014-03-21 16:45:15 | h.venev | create | |
|