Message308197
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 pedantic, we could write:
.. class:: array(typecode[, [initializer]])
as trailing commas are legal in function calls. But I don't think that makes for good documentation. |
|
| Date |
User |
Action |
Args |
| 2017-12-13 11:06:50 | steven.daprano | set | recipients:
+ steven.daprano, docs@python, Maik Ro |
| 2017-12-13 11:06:50 | steven.daprano | set | messageid: <[email protected]> |
| 2017-12-13 11:06:50 | steven.daprano | link | issue32301 messages |
| 2017-12-13 11:06:50 | steven.daprano | create | |
|