|
Re: Re: Simple but fundamental: How to import a jython class?: msg#00028lang.jython.user
Red Crow wrote: If you want use the class X write this: This is generally considered bad style. It makes it hard to figure out where definitions come from in the importing program, and can lead to surprises where you import more than you intend. another form to use your library: This is much better. You can also use from x import X if you don't want to have to type the module name everywhere you use X. Kent ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Evals from Java, Jake Eakle |
|---|---|
| Next by Date: | Re: Evals from Java, Kent Johnson |
| Previous by Thread: | Re: Re: Simple but fundamental: How to import a jython class?, Red Crow |
| Next by Thread: | Evals from Java, Jake Eakle |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |