[New-bugs-announce] [issue26035] traceback.print_tb() takes `tb`, not `traceback` as a keyword argument

Nicholas Chammas report at bugs.python.org
Wed Jan 6 23:47:35 EST 2016


New submission from Nicholas Chammas:

Here is traceback.print_tb()'s signature [0]:

```
def print_tb(tb, limit=None, file=None):
```

However, its documentation reads [1]:

```
.. function:: print_tb(traceback, limit=None, file=None)
```

Did the keyword argument change recently, or was this particular doc always wrong?

[0] https://github.com/python/cpython/blob/1fe0fd9feb6a4472a9a1b186502eb9c0b2366326/Lib/traceback.py#L43
[1] https://raw.githubusercontent.com/python/cpython/1fe0fd9feb6a4472a9a1b186502eb9c0b2366326/Doc/library/traceback.rst

----------
assignee: docs at python
components: Documentation
messages: 257670
nosy: Nicholas Chammas, docs at python
priority: normal
severity: normal
status: open
title: traceback.print_tb() takes `tb`, not `traceback` as a keyword argument
versions: Python 3.5, Python 3.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26035>
_______________________________________


More information about the New-bugs-announce mailing list