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.

Author pitrou
Recipients larry, ncoghlan, pitrou, rbcollins
Date 2015-09-14.10:13:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1442225623.41.0.830396346015.issue25108@psf.upfronthosting.co.za>
In-reply-to
Content
This can be considered a regression, although perhaps it may not be desirable to fix it in a later release.

In 3.4:

>>> def f(): return traceback.extract_stack()
... 
>>> print([x[0:3] for x in f()])
[('<stdin>', 1, '<module>'), ('<stdin>', 1, 'f')]

In 3.5:

>>> print([x[0:3] for x in f()])
[('<stdin>', 1, '<module>'), ('<stdin>', 1, 'f'), ('/home/antoine/35/lib/python3.5/traceback.py', 201, 'extract_stack')]

Note how the traceback module suddenly appears in the extracted stack. This breaks any application which uses a fixed offset into the returned stack to look up for information.
History
Date User Action Args
2015-09-14 10:13:43pitrousetrecipients: + pitrou, ncoghlan, larry, rbcollins
2015-09-14 10:13:43pitrousetmessageid: <1442225623.41.0.830396346015.issue25108@psf.upfronthosting.co.za>
2015-09-14 10:13:43pitroulinkissue25108 messages
2015-09-14 10:13:43pitroucreate