[issue32206] Run modules with pdb

2018-02-01 Thread Mario Corchero

Change by Mario Corchero :


--
pull_requests: +5321, 5322

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32206] Run modules with pdb

2018-02-01 Thread Mario Corchero

Change by Mario Corchero :


--
pull_requests: +5321

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32206] Run modules with pdb

2018-02-01 Thread Mario Corchero

Change by Mario Corchero :


--
pull_requests:  -5301

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32206] Run modules with pdb

2018-02-01 Thread Mario Corchero

Change by Mario Corchero :


--
pull_requests: +5301

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32206] Run modules with pdb

2018-01-27 Thread Nick Coghlan

Nick Coghlan  added the comment:

I checked the original PR, and I'm pretty sure the reference implementation is 
going to have the same bug.

To keep the NEWS entries clear (since the buggy implementation already shipped 
in the alpha releases), I've created a new issue here: 
https://bugs.python.org/issue32691

--
resolution:  -> fixed
stage: needs patch -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32206] Run modules with pdb

2018-01-27 Thread Nick Coghlan

Nick Coghlan  added the comment:


New changeset fcf8b4c1022bc2d2f84dcef5d72eabf40a25ea19 by Nick Coghlan (Mario 
Corchero) in branch 'master':
bpo-32206: Update pdb usage to include new module option (GH-5111)
https://github.com/python/cpython/commit/fcf8b4c1022bc2d2f84dcef5d72eabf40a25ea19


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32206] Run modules with pdb

2018-01-27 Thread Mario Corchero

Mario Corchero  added the comment:

Hi Jason, thanks a lot! 

I’ll have a look to the bug you reported on Monday. Out for holidays atm ^^

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32206] Run modules with pdb

2018-01-27 Thread Jason R. Coombs

Jason R. Coombs  added the comment:

Adopting the backport, I believe I've found a defect. I filed the defect with 
the backport as [backports.pdb 
1](https://github.com/jaraco/backports.pdb/issues/1).

Essentially, the issue is that `__package__` gets set to the module name 
instead of the package name, causing issues with `from .mod` imports.

Feel free to take the relevant parts of the fix in the backport to adjust the 
implementation here, and definitely let me know if you think the adjustment 
I've made is somehow incorrect.

Full disclosure, I have not tested the canonical implementation in Python 3.7, 
only the backport in Python 3.6 and 2.7.

Please let me know if you would like me to file a separate issue.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32206] Run modules with pdb

2018-01-26 Thread Jason R. Coombs

Jason R. Coombs  added the comment:

Thanks for creating this functionality. I'm so excited to use it that I've 
published a backport [https://pypi.org/project/backports.pdb], which seems to 
work for at least the basic use cases on Python 2.7+.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32206] Run modules with pdb

2018-01-26 Thread Jason R. Coombs

Change by Jason R. Coombs :


--
nosy: +jason.coombs

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32206] Run modules with pdb

2018-01-06 Thread Nick Coghlan

Nick Coghlan  added the comment:

Re-opening for the CLI help updates.

--
resolution: fixed -> 
stage: resolved -> needs patch
status: closed -> open

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32206] Run modules with pdb

2018-01-06 Thread Mario Corchero

Change by Mario Corchero :


--
pull_requests: +4978

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32206] Run modules with pdb

2018-01-05 Thread Nick Coghlan

Nick Coghlan  added the comment:

Thanks for the patch!

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
type:  -> enhancement

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32206] Run modules with pdb

2018-01-05 Thread Nick Coghlan

Nick Coghlan  added the comment:


New changeset 9f1e5f1b7f074e026843a5d70834233a95a6bf9d by Nick Coghlan (Mario 
Corchero) in branch 'master':
bpo-32206: Pdb can now run modules (GH-4752)
https://github.com/python/cpython/commit/9f1e5f1b7f074e026843a5d70834233a95a6bf9d


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32206] Run modules with pdb

2018-01-04 Thread Nick Coghlan

Nick Coghlan  added the comment:

Linking back to the overall RFE for improved executable module support for 
standard library modules that run other scripts: 
https://bugs.python.org/issue9325

--
nosy: +ncoghlan

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32206] Run modules with pdb

2017-12-07 Thread Mario Corchero

Change by Mario Corchero :


--
keywords: +patch
pull_requests: +4654
stage:  -> patch review

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32206] Run modules with pdb

2017-12-03 Thread Eric N. Vander Weele

Change by Eric N. Vander Weele :


--
nosy: +ericvw

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32206] Run modules with pdb

2017-12-03 Thread Mario Corchero

New submission from Mario Corchero :

Since PEP 338 we can run python modules as a script via `python -m module_name` 
but there is no way to run pdb on those (AFAIK).

The proposal is to add a new argument "-m" to the pdb module to allow users to 
run `python -m pdb -m my_module_name`

This is especially useful when working on cli tools that use entrypoints in 
setup.py, as there is no other way to run them.


I have a WIP here: 
https://github.com/mariocj89/cpython/commit/f47d1b779333657d7d87b21db841d5d3ad6cfa5c

Haven't sent the PR as I am still polishing some issues. If it sounds like a 
good idea I'll clean it up and open the PR.

--
components: Library (Lib)
messages: 307513
nosy: mariocj89
priority: normal
severity: normal
status: open
title: Run modules with pdb
versions: Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com