Message390628
> I tried applying this API on an extension, and I found the code to be slightly less readable for the "is not" cases.
FYI you can try upgrade_pythoncapi.py on your project using the following PR to update code to use Py_IsNone/Py_IsTrue/Py_IsFalse:
https://github.com/pythoncapi/pythoncapi_compat/pull/8
For example, use "upgrade_pythoncapi.py -o Py_Is directory/" or "upgrade_pythoncapi.py -o Py_Is file.c". |
|
Date |
User |
Action |
Args |
2021-04-09 13:59:56 | vstinner | set | recipients:
+ vstinner, tim.peters, rhettinger, mark.dickinson, Carl.Friedrich.Bolz, Mark.Shannon, pablogsal, shihai1991, erlendaasland |
2021-04-09 13:59:56 | vstinner | set | messageid: <1617976796.54.0.692329409593.issue43753@roundup.psfhosted.org> |
2021-04-09 13:59:56 | vstinner | link | issue43753 messages |
2021-04-09 13:59:56 | vstinner | create | |
|