[issue36969] pdb: do_args: display/handle keyword-only arguments

2019-05-21 Thread Rémi Lapeyre

Change by Rémi Lapeyre :


--
pull_requests: +13369

___
Python tracker 

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



[issue36969] pdb: do_args: display/handle keyword-only arguments

2019-05-21 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

> Of course, should I open a new PR or post a patch to be added to a current PR?

Make another PR against master.

--

___
Python tracker 

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



[issue36969] pdb: do_args: display/handle keyword-only arguments

2019-05-20 Thread miss-islington


miss-islington  added the comment:


New changeset 50b3f205d82d88eec69f18a0ad4bb2440ba73501 by Miss Islington (bot) 
in branch '3.7':
bpo-36969: Make PDB args command display keyword only arguments (GH-13452)
https://github.com/python/cpython/commit/50b3f205d82d88eec69f18a0ad4bb2440ba73501


--
nosy: +miss-islington

___
Python tracker 

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



[issue36969] pdb: do_args: display/handle keyword-only arguments

2019-05-20 Thread Rémi Lapeyre

Rémi Lapeyre  added the comment:

> Rémi, could you do a PR addressing co_posonlyargcount?
Of course, should I open a new PR or post a patch to be added to a current PR?

--
nosy: +remi.lapeyre

___
Python tracker 

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



[issue36969] pdb: do_args: display/handle keyword-only arguments

2019-05-20 Thread Pablo Galindo Salgado

Pablo Galindo Salgado  added the comment:

Rémi, could you do a PR addressing co_posonlyargcount?

--

___
Python tracker 

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



[issue36969] pdb: do_args: display/handle keyword-only arguments

2019-05-20 Thread miss-islington


Change by miss-islington :


--
pull_requests: +13362

___
Python tracker 

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



[issue36969] pdb: do_args: display/handle keyword-only arguments

2019-05-20 Thread Pablo Galindo Salgado

Pablo Galindo Salgado  added the comment:


New changeset bf457c7d8224179a023957876e757f2a7ffc3d9d by Pablo Galindo (Rémi 
Lapeyre) in branch 'master':
bpo-36969: Make PDB args command display keyword only arguments (GH-13452)
https://github.com/python/cpython/commit/bf457c7d8224179a023957876e757f2a7ffc3d9d


--

___
Python tracker 

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



[issue36969] pdb: do_args: display/handle keyword-only arguments

2019-05-20 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

Notice that pdb also does not handle correctly PEP570:

def f1(x,/,arg=None, *, kwonly=None):
breakpoint()

f1(3)
-> breakpoint()
(Pdb) args
x = 3

--
nosy: +pablogsal

___
Python tracker 

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



[issue36969] pdb: do_args: display/handle keyword-only arguments

2019-05-20 Thread Rémi Lapeyre

Change by Rémi Lapeyre :


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

___
Python tracker 

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



[issue36969] pdb: do_args: display/handle keyword-only arguments

2019-05-19 Thread daniel hahler


New submission from daniel hahler :

With a program like the following, `args` will not display the keyword-only 
argument:

```
def f1(arg=None, *, kwonly=None):
__import__('pdb').set_trace()


f1()
```

```
(Pdb) args
arg = 'arg'
kw = 'kw'
```

Related code:
https://github.com/python/cpython/blob/5c08ce9bf712acbb3f05a3a57baf51fcb534cdf0/Lib/pdb.py#L1129-L1144

--
components: Library (Lib)
messages: 342878
nosy: blueyed
priority: normal
severity: normal
status: open
title: pdb: do_args: display/handle keyword-only arguments
type: behavior
versions: Python 3.7, Python 3.8, Python 3.9

___
Python tracker 

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