Skip to content

PEPs API: handle name with commas in CSV author list #4211

Description

@hugovk

The authors field in the API is a comma-separated list:

https://peps.python.org/api/peps.json

For example: "authors": "Barry Warsaw, Jeremy Hylton, David Goodger, Alyssa Coghlan"

However, there's at least one name with a comma: "authors": "Fred L. Drake, Jr."

Let's handle this properly, perhaps using the csv module?

Thanks to @davep for finding this.

Activity

  1. added
    infraCore infrastructure for building and rendering PEPs
    on Jan 18, 2025
  2. davep commented on Jan 18, 2025

    @davep
    Contributor

    Given any change could inevitably have an impact on any tools out there using this data, which probably handle this anyway, might it not make sense to add a parallel property that is an actual JSON list of authors? This way no additional handling is needed by a client (they're already parsing JSON) and the format remains backward-compatible.

  3. hugovk commented on Jan 18, 2025

    @hugovk
    MemberAuthor

    Yes, that sounds sensible.

    This will likely need an update to the source PEPs as well:

    Author: Barry Warsaw, Jeremy Hylton, David Goodger, Alyssa Coghlan
    
    Author: Fred L. Drake, Jr. <fred@fdrake.net>
    

    PEP 1 defines this as part of a "RFC 2822 style header preamble":

    Author: <list of authors' names and optionally, email addrs>
    
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

    buginfraCore infrastructure for building and rendering PEPs

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions