Yes, it does (I just tested it)...  I didn't know this, as it is not 
documented AFAICanTell.

Hmmm... this is not consistent:  I mean, if you can do that, why not keep 
the full python idiom and do:

   <%@ page imports="package.subpackage.module"%>

or for that matter:

   <%@ page imports="package.module"%>

It's just two lines of code away...

Python, beautifully, blurs the distinction between packages, subpackages and 
modules (and classes and methods and attributes).  Why should PSP break the 
'.' chain?

Thanks,

Costas



>From: Geoffrey Talvola <[EMAIL PROTECTED]>
>To: "Costas Malamas" <[EMAIL PROTECTED]>,   
>[EMAIL PROTECTED]
>Subject: Re: [Webware-discuss] PSP bug in importing subpackages?
>Date: Tue, 18 Dec 2001 08:45:00 -0500
>
>On Tuesday December 18, 2001 03:46 am, Costas Malamas wrote:
> > Hey all,
> >
> > I am not sure if this is a PSP bug.  PSP doesn't seem to do a proper 
>import
> > if I use:
> >
> >    <%@ page imports="package:subpackage:module"%>
> >
> > It creates in the .py servlet:
> >
> >    from package import subpackage
> >
> > instead of:
> >
> >    from package.subpackage import module
> >
>
>Does
>
><%@ page imports="package.subpackage:module"%>
>
>work properly?  I think that's how you're supposed to write it.
>
>- Geoff


_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to