Skip to content

QuotedString: Add caution about param interactions #606

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 8, 2025

Conversation

ferdnyc
Copy link
Contributor

@ferdnyc ferdnyc commented Jun 5, 2025

Looking at adjusting the pydot GraphViz parser's handling of quoted strings, I was rather surprised to discover an unexpected interaction in the QuotedString parameters:

As implemented in QuotedString, convert_whitespace_escapes has no effect unless unquote_results is set to True.

This PR adds a Caution admonition to the API documentation, advising users of this restriction.

As implemented in `QuotedString`, `convert_whitespace_escapes` has
no effect unless `unquote_results` is set to `True`. Add a Caution
admonition to the API documentation, advising of this restriction.
@ferdnyc ferdnyc force-pushed the document-quote-restriction branch from 3f71c0e to 3954643 Compare June 5, 2025 09:56
@ptmcg
Copy link
Member

ptmcg commented Jun 8, 2025

Thanks for digging in to this. Will push out in a point release this month.

@ptmcg ptmcg merged commit 3ca5000 into pyparsing:master Jun 8, 2025
8 checks passed
@ferdnyc ferdnyc deleted the document-quote-restriction branch June 9, 2025 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants