Chen Li
5918098576
[traceback] Expose print_list method in traceback for python3. ( #2837 )
2019-03-12 00:11:40 +01:00
Nathaniel Manista
cca6ee43e6
Fix traceback.FrameSummary's "line" parameter ( #2470 )
...
traceback.FrameSummary's "line" parameter is a string that is the text
of a line of code, not an int that is the line number of a line of
code.
2018-09-21 16:58:25 -07:00
Jelle Zijlstra
b8b78886e3
add some Optionals to traceback.pyi ( #2044 )
...
Fixes #1974
2018-04-12 12:29:07 -07:00
Sebastian Rittau
0170e6d3c7
traceback.print_exception(): Arguments optional in Python 3 ( #1982 )
2018-03-28 18:45:14 -07:00
Patrick Valsecchi
d62743d788
Make traceback.FrameSummary Iterable ( #1741 )
...
To make this code valid:
```python
import traceback
for filename, lineno, name, line in traceback.extract_stack(stack):
pass
```
2017-11-13 07:05:16 -08:00
Guido van Rossum
76685480e0
Misc fixes found by running mypy against Dropbox internal codebase "C". ( #1575 )
2017-08-25 20:34:13 -07:00
Matthias Kramm
3638bc1f52
Fix Python 2's traceback.format_exception, traceback.print_exception ( #1512 )
...
E.g. it's legal to call traceback.format_exception(None, None, None). In
particular, this change makes the following idiom type-check:
import traceback
import sys
exc_type, exc_value, exc_traceback = sys.exc_info()
traceback.format_exception(exc_type, exc_value, exc_traceback)
2017-08-03 15:58:34 -07:00
Luka Sterbic
34c8aa0d4c
traceback: use StackSummary where possible ( #1495 )
2017-07-26 08:27:43 -07:00
Ivan Levkivskyi
c133a3aca7
First argument to traceback.extract_tb can be None ( #1223 )
...
* First argument to traceback.extract_tb can be None
* Add Optional also to print_tb, format_tb, and walk_tb
2017-04-27 08:07:40 -07:00
Lukasz Langa
5f416fae64
Add missing List imports.
2016-12-21 01:06:52 -08:00
Valérian Rousset
4e55f0561f
Improve traceback ( #465 )
2016-08-10 11:18:35 -07:00