Issue1782489

classification
Title: from org.python.core import * fails
Type: Severity: normal
Components: Core Versions:
Milestone:
process
Status: closed Resolution: rejected
Dependencies: Superseder:
Assigned To: Nosy List: cgroves, niall_kelly, zyasoft
Priority: normal Keywords:

Created on 2007-08-27.13:14:49 by niall_kelly, last changed 2008-09-14.01:30:31 by zyasoft.

Messages
msg1859 (view) Author: Niall Kelly (niall_kelly) Date: 2007-08-27.13:14:49
from org.python.core import * fails using 2.2 under java 1.5 with the following exception:
Traceback (innermost last):
  File "<console>", line 1, in ?
TypeError: cannot lazy load PyObject subclass

Tested on Ubuntu, FreeBSD and Windows all with the same results.
msg1860 (view) Author: Charlie Groves (cgroves) Date: 2007-09-25.05:08:21
org.python.core contains the internals of Jython, so you shouldn't need to import it directly into Python code and it isn't designed to support that.  Is there a reason you're trying to do this?
msg1861 (view) Author: Niall Kelly (niall_kelly) Date: 2007-09-25.15:13:48
In a number of places we were using it to get access to PyException. It was the first thing thrown up when we ran our code bases  test suite when we were testing compatibility with Jython 2.2
msg3573 (view) Author: Jim Baker (zyasoft) Date: 2008-09-14.01:30:31
We can selectively import in any class defined in org.python.core (or
other packages within Jython). So doing this works, and it can
occasionally be useful to do so:

from org.python.core import PyException

But lazy loading seems to be unnecessary for the use case proposed by
Niall Kelly.
History
Date User Action Args
2008-09-14 01:30:31zyasoftsetstatus: open -> closed
nosy: + zyasoft
resolution: rejected
messages: + msg3573
2007-08-27 13:14:49niall_kellycreate