Skip to content

bpo-39736: const strings in Modules/_datetimemodule.c and Modules/_testbuffer.c - #18637

Merged
benjaminp merged 2 commits into
python:masterfrom
petdance:bpo-39736
Feb 24, 2020
Merged

benjaminp merged 2 commits into
python:masterfrom
petdance:bpo-39736

Conversation

@petdance

@petdance petdance commented Feb 24, 2020 •

Copy link
Copy Markdown
Contributor

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.

https://bugs.python.org/issue39736

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants