[issue6905] inspect.getargspec(print) fails

2009-09-18 Thread Georg Brandl
Georg Brandl added the comment: OK, that is reasonable. I changed this and several other same-style errors in r74901. -- ___ Python tracker ___ __

[issue6905] inspect.getargspec(print) fails

2009-09-16 Thread Yuv Gre
Yuv Gre added the comment: You're right, I was confused by the statement "arg is not a Python function". I didn't realize 'arg' meant the function I passed to getargspec, I thought it was just strange. After digging a bit into inspect.py, may I suggest line 814 be changed from: raise TypeErr

[issue6905] inspect.getargspec(print) fails

2009-09-14 Thread Georg Brandl
Georg Brandl added the comment: This is not an issue, but a fundamental restriction of what getargspec() can do. C function signatures are not introspectable, because basically every C function can be thought of as defined as either def func(*args) or def func(*args, **kwargs) and is f

[issue6905] inspect.getargspec(print) fails

2009-09-13 Thread Yuv Gre
New submission from Yuv Gre : >>> import inspect >>> inspect.getargspec(print) Traceback (most recent call last): File "", line 1, in File "F:\Python31\lib\inspect.py", line 787, in getargspec getfullargspec(func) File "F:\Python31\lib\inspect.py", line 814, in getfullargspec raise