[issue3135] inspect.getcallargs()

2010-03-30 Thread Benjamin Peterson
Benjamin Peterson added the comment: Applied in r79500. Note I removed the error checking that a bound method received an instance of the class as the first argument because that error checking is a function of the calling of the function, not the binding of the arguments. -- resolut

[issue3135] inspect.getcallargs()

2010-03-19 Thread George Sakkis
George Sakkis added the comment: Uploaded at http://codereview.appspot.com/659041/show -- ___ Python tracker ___ ___ Python-bugs-list

[issue3135] inspect.getcallargs()

2010-03-19 Thread Benjamin Peterson
Benjamin Peterson added the comment: Would you upload this patch to Rietveld for review? -- ___ Python tracker ___ ___ Python-bugs-lis

[issue3135] inspect.getcallargs()

2010-03-19 Thread George Sakkis
George Sakkis added the comment: - Added docs in inspect.rst - Fixed TypeError message for zero-arg functions ("takes no arguments" instead of "takes exactly 0 arguments") + added test. -- Added file: http://bugs.python.org/file16591/getcallargs2.patch

[issue3135] inspect.getcallargs()

2010-03-19 Thread Benjamin Peterson
Benjamin Peterson added the comment: The patch will also need docs in inspect.rst. -- nosy: +benjamin.peterson ___ Python tracker ___

[issue3135] inspect.getcallargs()

2010-03-19 Thread George Sakkis
George Sakkis added the comment: Renamed the Testcase classes to conform with the rest in test_inspect.py, added a few more tests for tuple args and patched against the latest trunk (r79086). -- Added file: http://bugs.python.org/file16587/getcallargs.patch ___

[issue3135] inspect.getcallargs()

2010-03-19 Thread George Sakkis
Changes by George Sakkis : Removed file: http://bugs.python.org/file16579/getcallargs.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue3135] inspect.getcallargs()

2010-03-18 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +Alexander.Belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue3135] inspect.getcallargs()

2010-03-18 Thread George Sakkis
George Sakkis added the comment: I reverted the function to the original API (return just the dict with the bindings), cleaned it up, wrote thorough unit tests and made a patch against Python 2.7a4. -- keywords: +patch Added file: http://bugs.python.org/file16579/getcallargs.patch __

[issue3135] inspect.getcallargs()

2009-05-14 Thread George Sakkis
George Sakkis added the comment: Also updated url: http://code.activestate.com/recipes/551779/ -- ___ Python tracker ___ ___ Python-bu

[issue3135] inspect.getcallargs()

2009-05-14 Thread George Sakkis
George Sakkis added the comment: I updated the recipe to also return a `missing_args` tuple - the tuple of the formal parameters whose value was not provided. This is useful in cases where one want to distinguish f() from f(None) given "def f(x=None)". -- versions: +Python 2.7 -Python 2

[issue3135] inspect.getcallargs()

2008-06-18 Thread George Sakkis
New submission from George Sakkis <[EMAIL PROTECTED]>: I'd like to propose a new function for inclusion to the inspect module -- getcallargs(func, *args, **kwds) -- that returns a dict which maps the formal arguments of a function (or other callable) to the values passed as args and kwds, just as