Opened 10 years ago
Closed 10 years ago
#23111 closed Bug (wontfix)
Vendor inspect.getcallargs for Jython 2.7 support
Reported by: | anonymous | Owned by: | nobody |
---|---|---|---|
Component: | Template system | Version: | 1.7-rc-1 |
Severity: | Normal | Keywords: | jython, template |
Cc: | Andreas Stocker | Triage Stage: | Accepted |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | yes |
Easy pickings: | no | UI/UX: | no |
Description
inspect.getcallargs
is not available in Jython 2.7. I'm shure this is something that should be fixed in Jython too, a workaround in Django would be easy to implement and has no drawbacks to the standard CPython implementation.
Change History (8)
comment:1 by , 10 years ago
Cc: | added |
---|---|
Has patch: | set |
comment:2 by , 10 years ago
How do you run Django on Jython lately? This is latest status I could find: "As of January 2014, the latest release of django-jython supports Django 1.3 which is no longer supported (receiving fixes or security updates) by the Django Project. We therefore recommend that you do not try to run Django on Jython at this time." I authored that text, so we'd welcome a documentation update if there's a new way to do it.
comment:3 by , 10 years ago
I've created a new branch in the django-jython Repository (https://code.google.com/p/django-jython/source/browse/?name=1.7.X) where I try to port the database backends Django offers to a thin zxJDBC layer. Currently I'm the only person who works on django-jython, and I'm doing it very sporadicaly. So the projekt IS seeking contributors!
The latest revision on the default branch is working with Django 1.4 - at least the PostgreSQL and MS-SQL backends do. But we never made it to a release (as the other backends are untested and are quite certainly not working).
comment:4 by , 10 years ago
Thanks for the update. Do you know if there is a Jython bug we can track? If we make this change, I'd want to remove it as soon as possible.
comment:5 by , 10 years ago
It's used in a few more places, so I don't think we want to go down the road of nested imports, since it's pure python we could vendor it however.
comment:6 by , 10 years ago
Patch needs improvement: | set |
---|---|
Summary: | getcallargs is not available in Jython 2.7 → Vendor inspect.getcallargs for Jython 2.7 support |
Triage Stage: | Unreviewed → Accepted |
comment:7 by , 10 years ago
I've opened a ticket on Jython's bugtracker: http://bugs.jython.org/issue2184
comment:8 by , 10 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Per the ticket above, it looks like this will be address in Jython and there's a temporary workaround for django-jython so I suggest we not do this.
Patch available here: https://github.com/django/django/pull/2983