Skip to content

Changing _log.info to warnings.warn and importing the warnings module.#27073

Open
pedrompecanha wants to merge 2 commits into
matplotlib:mainfrom
pedrompecanha:string-formatted-numbers-warning
Open

Changing _log.info to warnings.warn and importing the warnings module.#27073
pedrompecanha wants to merge 2 commits into
matplotlib:mainfrom
pedrompecanha:string-formatted-numbers-warning

Conversation

@pedrompecanha

@pedrompecanha pedrompecanha commented Oct 12, 2023

Copy link
Copy Markdown
Contributor

PR summary

Changing the _log.info to warnings.warn when passing string-formatted numbers as data, closes #23422 as for now.

PR checklist

@QuLogic QuLogic left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure that the discussion on #23422 was conclusive. @timhoffm @jklymak

@pedrompecanha

Copy link
Copy Markdown
Contributor Author

Yeah, they weren't. I thought not a lot of discussion was going to happen, that's why I opened the PR. But I believe opening the PR sparked the discussion again, as it made it more recent and fresh.

@timhoffm

Copy link
Copy Markdown
Member

Unfortunately, the decision is not conclusive yet. You are right that it stalled, but got revived through this PR 😄 . Let's wait, what #23422 brings.

timhoffm added a commit to timhoffm/matplotlib that referenced this pull request Dec 17, 2025
Closes matplotlib#27073.

For details see https://github
.com/matplotlib/issues/23422#issuecomment-2363859957.
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.

[MNT]: User feedback should use warnings, not logs

4 participants