Jython

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

Supported by Python Software Foundation,
Powered by Roundup

AltStyle によって変換されたページ (->オリジナル) /