Issue1014

classification
Title: Patch for inspect.getargspec to work with PyReflectedFunction
Type: rfe Severity: normal
Components: Core Versions:
Milestone:
process
Status: open Resolution: remind
Dependencies: Superseder:
Assigned To: nobody Nosy List: crotwell, fwierzbicki, nobody, zyasoft
Priority: normal Keywords:

Created on 2008-03-25.18:46:10 by crotwell, last changed 2018-03-07.20:01:13 by jeff.allen.

Files
File name Uploaded Description Edit Remove
neededForInspect.diff crotwell, 2008-03-25.18:46:09
Messages
msg3103 (view) Author: Philip Crotwell (crotwell) Date: 2008-03-25.18:46:09
Patch to add func_code to PyReflectedFunction so that getargspec in
inspect.py works with java methods. For example:


import inspect
from java.lang import Math
print inspect.getargspec(Math.atan2)
(['double', 'double'], None, None, None)

This could be part of Issue526672
msg3104 (view) Author: Philip Crotwell (crotwell) Date: 2008-03-25.18:57:36
This patch does not deal very nicely with method overloading, currently
it just uses the first method, using PyReflectedFunction.argslist[0].
msg7835 (view) Author: Frank Wierzbicki (fwierzbicki) Date: 2013-02-27.16:41:54
Hi Philip, I know it's been a *long* time - sorry for that. I'm doing house cleaning on this tracker and hope to do better in the future so things like this don't go unanswered for so long. Are you still interested in pushing something like this forward?
msg7900 (view) Author: Philip Crotwell (crotwell) Date: 2013-03-04.12:19:07
To be honest, it has been long enough that I don't really remember what this was about, so I'll leave it to your discretion. I probably won't be able to help, so feel free to close it if you don't think it is worth pursuing.
msg9050 (view) Author: Jim Baker (zyasoft) Date: 2014-09-26.06:08:43
Nice suggested functionality, but likely slips to 2.7.1 or later
msg9059 (view) Author: Jim Baker (zyasoft) Date: 2014-10-01.17:04:21
I just reviewed the patch in some more detail, and it's a straightforward refactoring. Let's add for 2.7.0, once we put in some tests.

Target beta 4
msg9348 (view) Author: Jim Baker (zyasoft) Date: 2015-01-07.16:45:24
This will require more analysis:

* Interaction with http://docs.oracle.com/javase/8/docs/api/java/lang/reflect/Executable.html#getParameters-- (available as of Java 8)

* Support for calling with keyword args with respect to overloading

So postponing to 2.7.x, where x > 0
History
Date User Action Args
2018-03-07 20:01:13jeff.allensetmilestone: Jython 2.7.2 ->
2015-12-29 23:50:27zyasoftsetmilestone: Jython 2.7.1 -> Jython 2.7.2
2015-04-15 20:43:49zyasoftsetassignee: zyasoft -> nobody
nosy: + nobody
milestone: Jython 2.7.1
2015-01-07 16:45:25zyasoftsetpriority: high -> normal
messages: + msg9348
2015-01-07 06:07:48zyasoftsetresolution: accepted -> remind
2014-10-06 03:32:31zyasoftsetpriority: normal -> high
2014-10-01 17:04:22zyasoftsetpriority: low -> normal
assignee: zyasoft
resolution: accepted
messages: + msg9059
2014-09-26 06:08:43zyasoftsetnosy: + zyasoft
messages: + msg9050
2013-03-04 12:19:07crotwellsetmessages: + msg7900
2013-02-27 16:42:27fwierzbickisettype: rfe
2013-02-27 16:41:54fwierzbickisetmessages: + msg7835
2009-03-14 03:09:48fwierzbickisetpriority: low
2008-12-17 19:11:11fwierzbickisetnosy: + fwierzbicki
2008-03-25 18:57:36crotwellsetmessages: + msg3104
2008-03-25 18:46:10crotwellcreate