Skip to content
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

Add support for Lists #2

Open
JakobDev opened this issue Nov 9, 2023 · 1 comment
Open

Add support for Lists #2

JakobDev opened this issue Nov 9, 2023 · 1 comment

Comments

@JakobDev
Copy link

JakobDev commented Nov 9, 2023

I'm currently using this lib to parse Metadata of debian akcgaes and repo which uses RFC 822. There are some comma separated lists e.g. Tag: devel::rcs, implemented-in::c, interface::commandline, role::program . It is esaiy to convert this into a list, but I think it would be nice if headerparser is able to directly parse a list.

@jwodder
Copy link
Collaborator

jwodder commented Nov 9, 2023

What do you mean by "able to directly parse a list"? I would expect parsing of lists to be done via parser.add_field(..., type=some_function_for_splitting_on_commas), and the only decent way to simplify that would be if headerparser provided a builtin splitting function for passing to type, but that seems like barely a feature.

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

No branches or pull requests

2 participants