This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: `with_traceback` in 2.7 docs but not implemented
Type: Stage: resolved
Components: Documentation Versions: Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: ezio.melotti Nosy List: docs@python, ezio.melotti, jonash, python-dev
Priority: normal Keywords:

Created on 2011-03-13 20:17 by jonash, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (3)
msg130760 - (view) Author: Jonas H. (jonash) * Date: 2011-03-13 20:17
Either a `BaseException.with_traceback` implementation is missing or the docs are wrong.

http://docs.python.org/library/exceptions.html?highlight=with_traceback#exceptions.BaseException.with_traceback

python3 -c 'print("with_traceback" in dir(BaseException))'
True
python2 -c 'print("with_traceback" in dir(BaseException))'
False
msg130762 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2011-03-13 20:56
New changeset 22f991bb9b0b by Ezio Melotti in branch '2.7':
#11484: remove paragraph about with_traceback from 2.7 doc.
http://hg.python.org/cpython/rev/22f991bb9b0b
msg130763 - (view) Author: Ezio Melotti (ezio.melotti) * (Python committer) Date: 2011-03-13 20:57
It's a documentation bug, with_traceback is available in 3.x only.
I now fixed the doc for 2.7, thanks for the report!
History
Date User Action Args
2022-04-11 14:57:14adminsetgithub: 55693
2011-03-13 20:57:50ezio.melottisetstatus: open -> closed

assignee: docs@python -> ezio.melotti

nosy: + ezio.melotti
messages: + msg130763
resolution: fixed
stage: resolved
2011-03-13 20:56:18python-devsetnosy: + python-dev
messages: + msg130762
2011-03-13 20:17:51jonashcreate