From: Frank W. <fwi...@gm...> - 2005-11-13 22:58:58
|
> Jython 2.1 on java1.5.0_02 (JIT: null) > Type "copyright", "credits" or "license" for more information. > >>> from java.lang import * > >>> Boolean > <jclass java.lang.Boolean at 29789039> > > It's okay for playing around in the interpreter, but not > recommended otherwise because you can clobber > objects with the same name in your namespace. You can also: Jython 2.1 on java1.5.0_05 (JIT: null) Type "copyright", "credits" or "license" for more information. >>> from java.lang import Boolean >>> Boolean <jclass java.lang.Boolean at 17092455> And this will not cause so much namespace polution. In fact, unlike import *, it is considered acceptable practice outside of the interpreter. -Frank |