kwargs in signature display in shell
I just realized that there is an insistent behavior in the ptpython signature when defining functions in the bliss shell. In this case the displayed signature does not distinguish between args and kwargs:
I made a small test class
class Bla(object):
def f(self,arg,b="toto"):
print(arg,b)
that i put in bliss/bla.py
And I get this behavior:
BLISS [1]: from bliss.bla import Bla
BLISS [2]: b=Bla()
BLISS [3]: b.f(
f(param arg, param b="toto") <-- displayed signature
BLISS [3]: class Bla_in_Shell(object):
...: def f(self,arg,b="toto"):
...: print(arg,b)
BLISS [4]: c=Bla_in_Shell()
BLISS [5]: c.f(
f(param arg, param b) <-- displayed signature
Edited by Matias Guijarro