From: Jeff E. <jem...@fr...> - 2005-03-10 18:48:10
|
How's this: >>> for symbol in dir(java.lang.Math): ... __main__.__dict__['my_'+symbol]=java.lang.Math.__dict__[symbol] ... >>> my_abs(-1) 1L Aaron Freeman wrote: > I know you can effectively rename java classes by using 'import as', but > is there also a way to rename all the stuff in the class? We're working > with a proprietary library, so I don't have access to the java source. > Thanks. > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users |