Importing java classes in Jython
Cool Frood
akshata at usa.net
Mon Aug 20 16:13:49 EDT 2001
Hi,
This is regarding importing java classes in Jython which go into the
default (unnamed) package:
/* no package defined */
class Foo
{
...
}
If I do the following in Jython:
import Foo
....
fooVar = Foo()
it doesn't work. Can anybody explain why? Is it got something to do
with the fact that it first imports Foo as a class and then as a
package, and hence, thinks that Foo is a package. If so, how to import
classes in the unnamed package?
Regards,
Cool Frood
More information about the Python-list
mailing list