]> granicus.if.org Git - python/commit
bpo-32206: Pdb can now run modules (GH-4752)
authorMario Corchero <mariocj89@gmail.com>
Sat, 6 Jan 2018 07:53:05 +0000 (07:53 +0000)
committerNick Coghlan <ncoghlan@gmail.com>
Sat, 6 Jan 2018 07:53:05 +0000 (17:53 +1000)
commit9f1e5f1b7f074e026843a5d70834233a95a6bf9d
tree80ec106fce0fcac6825a310881e4eb102aae7e9f
parent735ae8d139a673b30b321dc10acfd3d14f0d633b
bpo-32206: Pdb can now run modules (GH-4752)

Add a new argument "-m" to the pdb module to allow
users to run `python -m pdb -m my_module_name`.

This relies on private APIs in the runpy module to work,
but we can get away with that since they're both part of
the standard library and can be updated together if
the runpy internals get refactored.
Doc/library/pdb.rst
Doc/whatsnew/3.7.rst
Lib/pdb.py
Lib/test/test_pdb.py
Misc/NEWS.d/next/Library/2017-12-07-13-14-40.bpo-32206.obm4OM.rst [new file with mode: 0644]