Skip to content

[Question] Why isn't this standard behavior of urllib.parse.parse_qs? #42

Open

Description

@mecampbellsoup

Title says it all - why the HECK isn't this standard behavior for urllib.parse.parse_qs - surely we have all asked this question at some point, hoping y'all have some context!

Activity

  1. paulmelnikow commented on Mar 8, 2022

    @paulmelnikow
    Collaborator

    Because array and object notation in query strings are not defined by the HTTP specification.

    Since these conventions are not standardized, the specific way it's done varies by library.

    It wouldn't be appropriate for a language's core implementation to choose any particular way of doing it.

  2. mecampbellsoup commented on Mar 8, 2022

    @mecampbellsoup
    Author

    Thanks @paulmelnikow. So, in summary then, for parsing any sort of nested querystring data, one needs to use a library like this?

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions