Skip to content

Preserve hash characters in Csv values - #189

Open
muneikh wants to merge 1 commit into
HBNetwork:masterfrom
muneikh:preserve-hashes-in-csv
Open

muneikh wants to merge 1 commit into
HBNetwork:masterfrom
muneikh:preserve-hashes-in-csv

Conversation

@muneikh

@muneikh muneikh commented Oct 11, 2026

Copy link
Copy Markdown

Csv inherits shlex comment parsing, so an unquoted hash silently drops the remainder of a configuration value. For example, Csv()("https://example.com/#section,next") returns only ["https://example.com/"], and a value starting with # returns no fields.

Disable shlex commenters so hashes remain data, preserving the existing delimiter, quoting, stripping, cast and post-processing behavior. Regressions cover URL fragments, hashes at the beginning/middle of values and a custom delimiter with tuple processing.

Validation: two new tests fail before the change; the full Python 3.13 suite passes (69 tests).

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.

1 participant