[New-bugs-announce] [issue44504] Typo in the docstring of Mapping.get method

Yevhen Kuzmovych report at bugs.python.org
Thu Jun 24 08:22:21 EDT 2021


New submission from Yevhen Kuzmovych <kuzmovich.goog at gmail.com>:

The comment of `Mapping.get` method should state

'D.get(k[,d]) -> D[k] if k in D else d.  d defaults to None.'

instead of 

'D.get(k[,d]) -> D[k] if k in D, else d.  d defaults to None.' (note the comma before `else`.

----------
components: Library (Lib)
messages: 396478
nosy: kuzmovich.goog
priority: normal
severity: normal
status: open
title: Typo in the docstring of Mapping.get method
type: enhancement
versions: Python 3.10, Python 3.11, Python 3.6, Python 3.7, Python 3.8, Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44504>
_______________________________________


More information about the New-bugs-announce mailing list