JPython - Java and Python packages/classes with the same name?
Steve Holden
sholden at holdenweb.com
Wed Sep 13 18:21:27 EDT 2000
But surely the Python class would be called "eggs", and live in
a package called "eggs"? :-)
[Sorry]
regards
Steve
Chris Knight wrote:
>
> I'd like to have a Java class and a (pure)Python class with the same name in
> the same package structure. For example, let's say I had a Java package
> named "foo" and I would like to import the class "bar" from the Java class.
> But, let's also say that there's a Python package named "foo" also with the
> class "bar" inside, is there a way to say "import foo.bar" so that the Java
> class is imported?
--
Helping people meet their information needs with training and technology.
703 967 0887 sholden at bellatlantic.net http://www.holdenweb.com/
More information about the Python-list
mailing list