Steven D'Aprano added the comment:
The given version is correct: the comma is only required if the initializer is
given. Your suggested version
typecode, [initializer]
implies that the comma is always required whether the initializer is given or
not.
If we want to be absolutely pedanti
New submission from Maik Ro :
.. class:: array(typecode[, initializer])
should be
typecode, [initializer] - comma is in square brackets
--
assignee: docs@python
components: Documentation
messages: 308195
nosy: Maik Ro, docs@python
priority: normal
severity: normal
status: open
title: