[issue20401] inspect.signature removes initial starred method params (bug)

2017-05-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: OK, we will change this example in test_calltips once calltips uses .signature (#19903). -- ___ Python tracker ___

[issue20401] inspect.signature removes initial starred method params (bug)

2017-05-01 Thread Yury Selivanov
Yury Selivanov added the comment: > Is there any reason that the second case Terry provide still will failed with > ValueError? > class C: >def meth2(**kwds): pass > ip.signature(C().meth2) Yes, the reason is that `C().meth2` is an invalid method that can't be called. Try calling `C().m

[issue20401] inspect.signature removes initial starred method params (bug)

2017-04-30 Thread Louie Lu
Louie Lu added the comment: Is there any reason that the second case Terry provide still will failed with ValueError? class C: def meth2(**kwds): pass ip.signature(C().meth2) Traceback (most recent call last): File "/home/linux/Python/cpython/Lib/idlelib/idle_test/test_calltips.py", l

[issue20401] inspect.signature removes initial starred method params (bug)

2014-01-28 Thread Yury Selivanov
Yury Selivanov added the comment: Committed. Thank you, Terry. -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue20401] inspect.signature removes initial starred method params (bug)

2014-01-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3544827d42e6 by Yury Selivanov in branch 'default': inspect.signature: Handle bound methods with '(*args)' signature correctly #20401 http://hg.python.org/cpython/rev/3544827d42e6 -- nosy: +python-dev __

[issue20401] inspect.signature removes initial starred method params (bug)

2014-01-27 Thread Yury Selivanov
Yury Selivanov added the comment: Patch is attached, please review. Should we commit this to 3.3 too? -- assignee: -> yselivanov keywords: +patch nosy: +ncoghlan Added file: http://bugs.python.org/file33758/signature_method_first_arg_01.patch ___ Pyt

[issue20401] inspect.signature removes initial starred method params (bug)

2014-01-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: Sorry, I should have said that I tried repository versions of both 3.3 and 3.4. -- ___ Python tracker ___ __

[issue20401] inspect.signature removes initial starred method params (bug)

2014-01-26 Thread Yury Selivanov
Yury Selivanov added the comment: Yes, that's s bug. I'll take a look tomorrow. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue20401] inspect.signature removes initial starred method params (bug)

2014-01-26 Thread Larry Hastings
Larry Hastings added the comment: I just tried it in 3.3 (3.3.1rc1) and it had the same problem. -- ___ Python tracker ___ ___ Python-

[issue20401] inspect.signature removes initial starred method params (bug)

2014-01-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: There does not appear to be a test for this. If so, this case may not have ever worked right. Here is the only failure at the moment (which should also be fixed). F:\Python\dev>4\py34\pcbuild\python_d.exe -m test test_inspect [1/1] test_inspect test test_inspe

[issue20401] inspect.signature removes initial starred method params (bug)

2014-01-26 Thread Larry Hastings
Larry Hastings added the comment: Yury, can you look in to this? I have been modifying inspect.signature, but (almost) exclusively in from_builtin. If this is my fault I'll be happy to fix it. -- nosy: +larry ___ Python tracker

[issue20401] inspect.signature removes initial starred method params (bug)

2014-01-26 Thread Terry J. Reedy
New submission from Terry J. Reedy: >>> import inspect >>> class C: def meth(*args): pass >>> str(inspect.signature(C.meth)) '(*args)' >>> c=C() >>> str(s=inspect.signature(c.meth)) '()' *args should have been left in even for the bound method, as idlelib calltips do. Since '*'