Re: Jython import coventions

2007-10-10 Thread OnCallSupport321
On Oct 9, 10:42 pm, Benjamin <[EMAIL PROTECTED]> wrote: > When importing Java packages in Jython, what is the convention to > simplify imports? For example: > import java.util as util > Is this correct? Or should I use from * import *? I have preferred the style... import java import javax ...an

Re: Singleton

2007-10-10 Thread OnCallSupport321
Spring Python (http://springpython.python-hosting.com) offers a singleton solution. You can mark up function calls to only be called the first time, i.e. as singletons. The results are cached inside the Spring Python IoC container, so the next time the function is called, it returns the cached copy