[New-bugs-announce] [issue35429] Incorrect use of raise NotImplemented

Roman Yurchak report at bugs.python.org
Thu Dec 6 15:01:58 EST 2018


New submission from Roman Yurchak <rth.yurchak at pm.me>:

In two places in stdlib, `raise NotImplemented` is used instead of `raise NotImplementedError`. The former is not valid and produces,

```
>>> raise NotImplemented('message')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: 'NotImplementedType' object is not callable
```

----------
components: Library (Lib)
messages: 331244
nosy: rth
priority: normal
severity: normal
status: open
title: Incorrect use of raise NotImplemented
versions: Python 3.8

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


More information about the New-bugs-announce mailing list