PEP 621: Syntax error in example?

Looking at the Example in PEP 621 I found that authors and maintainers are represented in a different kind of structure:

authors = [
  {email = "hi@pradyunsg.me"},
  {name = "Tzu-Ping Chung"}
]
maintainers = [
  {name = "Brett Cannon", email = "brett@python.org"}
]

I understand the structure for maintainers, but I struggle to understand the structure for authors.

I’d chose this representation:

authors = [
  {name = "Tzu-Ping Chung", email = "hi@pradyunsg.me"}
]
maintainers = [
  {name = "Brett Cannon", email = "brett@python.org"}
]

Am I misunderstanding something, or is this just a simple typo in the PEP?

You’re misunderstanding the example. The authors example shows two authors, one with just a name and one with just an email address. You can’t really tell unless you happen to know the actual names and email addresses of the PEP authors :slightly_smiling_face:

TBH, the example simply isn’t very clear, in my view, unless you know the structure of the underlying metadata.

2 Likes

Yes, that makes sense.
Thanks for clearing this up :slight_smile: