[Python-Dev] Adding Optik to 2.3 standard library (original) (raw)
Barry A. Warsaw barry@zope.com
Sun, 14 Apr 2002 19:30:58 -0400
- Previous message: [Python-Dev] Adding Optik to 2.3 standard library
- Next message: [Python-Dev] Adding Optik to 2.3 standard library
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
"SP" == Samuele Pedroni <pedroni@inf.ethz.ch> writes:
SP> Seriously, what do you mean by that? I imagine ugly things
SP> <wink>.
Naw, I have a beautiful mind. :)
SP> Btw, Jython
SP> (as you might now) has deep-auto-importing, that means
SP> import pkg1.pkg2
SP> pkg1.pkg2.f()
SP> in Jython can be written as:
SP> import pkg1
SP> pkg1.pkg2.f()
Indeed, and that's exactly what I'd like to see, although I don't mind it if packages have to be specially instrumented to provide this behavior.
SP> (yes you should still import the first-level package),
SP> this was intended for Java imports but then
SP> extended to python packages too for symmetry.
SP> OTOH is a great way to write non-portable
SP> (to CPython) jython code <wink>.
Another good reason to add something like this!
jython-is-a-shining-beacon-ly y'rs, -Barry
- Previous message: [Python-Dev] Adding Optik to 2.3 standard library
- Next message: [Python-Dev] Adding Optik to 2.3 standard library
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]