Message277905
The remaining question is what should be the type of the exception. ValueError is documented exception, but SystemError is actually raised exception (and it always was raised). PyUnicode_AsUCS4() is used 6 times in 3 files in CPython code, and it should never raise this exception. PyUnicode_AsUCS4() is in public API an can be used in third party code. Seems raising this exception can be caused only by programming error in C extension. SystemError is right exception in this case.
It looks to me that the code is correct and the documentation should be fixed to match the code. |
|
Date |
User |
Action |
Args |
2016-10-02 17:39:02 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, vstinner, xiang.zhang |
2016-10-02 17:39:02 | serhiy.storchaka | set | messageid: <1475429942.9.0.212101722993.issue28295@psf.upfronthosting.co.za> |
2016-10-02 17:39:02 | serhiy.storchaka | link | issue28295 messages |
2016-10-02 17:39:02 | serhiy.storchaka | create | |
|