[New-bugs-announce] [issue39736] const strings in Modules/_datetimemodule.c and Modules/_testbuffer.c

Andy Lester report at bugs.python.org
Sun Feb 23 23:24:30 EST 2020


New submission from Andy Lester <andy at petdance.com>:

In Modules/_datetimemodule.c, the char *timespec and char *specs[] can be made const.  Their contents are never modified.

In ndarray_get_format in Modules/_testbuffer.c, char *fmt can be made const.

----------
components: Interpreter Core
messages: 362565
nosy: petdance
priority: normal
severity: normal
status: open
title: const strings in Modules/_datetimemodule.c and Modules/_testbuffer.c

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39736>
_______________________________________


More information about the New-bugs-announce mailing list