Carl Meyer
9e76d44b09
Fix sys.setprofile annotation. ( #1679 )
...
`sys.setprofile(None)` is valid, and is in fact the only way to clear a profiler once set.
2017-10-23 15:26:58 -04:00
Jelle Zijlstra
4ea6c1cffb
sys: clean up ( #1545 )
...
- More precise types for trace and profile functions
- Remove redundant comments
2017-08-21 13:54:55 -07:00
Mike Patek
0e7b2e1acf
Add 'sys.is_finalizing' function ( #898 )
...
Fixes #856
2017-01-30 10:25:39 -08:00
David Fisher
2cb8e184cc
Add NoReturn ( #811 )
...
* Add NoReturn
2017-01-04 13:38:05 -08:00
Lukasz Langa
68a49c2c2e
Fixing flake8 E111, E114, E116, E203, E225, E262 errors
2016-12-20 01:39:18 -08:00
Lukasz Langa
147772950f
Fixing flake8 E265 errors
2016-12-20 00:16:44 -08:00
Lukasz Langa
fe0e3744cc
Fixing flake8 E261 errors
2016-12-19 22:09:35 -08:00
Sebastian Meßmer
96ba62503b
Use concrete type in sys.excepthook() ( #547 )
...
This is necessary, because exception formatting functions like `traceback.format_exception()` expect to get `Type[BaseException]`, but sys.excepthook only provided `type`
2016-09-14 08:03:41 -07:00
Valérian Rousset
4e55f0561f
Improve traceback ( #465 )
2016-08-10 11:18:35 -07:00
Valérian Rousset
c40a260b47
fix sys.exc_info return type ( #246 )
2016-06-06 08:52:40 -07:00
Valérian Rousset
a32d8a9da6
add types to sys.getrefcount ( #237 )
2016-06-02 00:27:37 -07:00
Valérian Rousset
ff94f6def0
specifiy Callable in sys.call_tracing ( #230 )
2016-05-30 09:32:56 -07:00
Tim Abbott
a648f5eee1
Fix incorrect sys.exit() type.
2016-02-05 11:28:16 -08:00
Guido van Rossum
8c2118bace
Move contents of builtins/* to stdlib/*. This simplifies finding stubs.
2016-01-12 12:53:18 -08:00