[issue20816] inspect.getcallargs() attempts to iterate over None

2014-03-27 Thread Yury Selivanov
Yury Selivanov added the comment: Fixed for 3.4.1 and 3.5. Thank you Jeremiah! -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue20816] inspect.getcallargs() attempts to iterate over None

2014-03-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3de2e729d0fb by Yury Selivanov in branch 'default': inspect: Fix getcallargs() to raise correct TypeError http://hg.python.org/cpython/rev/3de2e729d0fb New changeset 070dfca74610 by Yury Selivanov in branch '3.4': inspect: Fix getcallargs() to raise

[issue20816] inspect.getcallargs() attempts to iterate over None

2014-03-01 Thread Yury Selivanov
Changes by Yury Selivanov : -- assignee: -> yselivanov nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue20816] inspect.getcallargs() attempts to iterate over None

2014-03-01 Thread Jeremiah Lowin
Jeremiah Lowin added the comment: Apologies, the patch is attached here. -- keywords: +patch Added file: http://bugs.python.org/file34260/issue20816.patch ___ Python tracker ___

[issue20816] inspect.getcallargs() attempts to iterate over None

2014-03-01 Thread Jeremiah Lowin
Jeremiah Lowin added the comment: I created a patch to resolve this. If a function has keyword-only arguments, then inspect.getcallargs checks if the argument is in kwonlydefaults. However, kwonlydefaults is None if no defaults were specified. In that situation, 'kwarg in kwonlydefaults' rais

[issue20816] inspect.getcallargs() attempts to iterate over None

2014-03-01 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: +yselivanov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue20816] inspect.getcallargs() attempts to iterate over None

2014-03-01 Thread Jeremiah Lowin
New submission from Jeremiah Lowin: Tested in Python 3.3 and Python 3.4.0rc1 5e05d7d3db9c If a function has keyword-only arguments but no keyword-only defaults, then calling inspect.getcallargs with no arguments results in the wrong TypeError being raised. Example: >>> import inspect >>> def