Message380198
Are all these occurrences in the module initialization code?
I think there is nothing wrong with this. Yes, the code can be a little clearer if use PyObject_GetArrt or PyModule_Add*, but rewriting can introduce new bugs.
The remark in the documentation is rather about reading the module attributes and writing a new code. It does not require rewriting existing code.
You can do this, but it will be treated as pure cosmetic change. It can be accepted if the new code is much clearer. |
|
Date |
User |
Action |
Args |
2020-11-02 09:02:42 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, erlendaasland |
2020-11-02 09:02:42 | serhiy.storchaka | set | messageid: <1604307762.22.0.0709139753647.issue42243@roundup.psfhosted.org> |
2020-11-02 09:02:42 | serhiy.storchaka | link | issue42243 messages |
2020-11-02 09:02:42 | serhiy.storchaka | create | |
|