[mod_python] Nested PSP

Diener, Edward Edward.Diener at loyaltyworks.com
Tue Jun 1 15:00:10 EDT 2004


> -----Original Message-----
> From: Gregory (Grisha) Trubetskoy [mailto:grisha at modpython.org] 
> Sent: Tuesday, June 01, 2004 1:07 PM
> To: Diener, Edward
> Cc: mod_python at modpython.org
> Subject: Re: [mod_python] Nested PSP
> 
> 
> 
> I don't think so. Once the scanner sees a '<%=' it will look 
> for a closing '%>' and anything else is ignored.
> 
> I'm also not sure what that would accomplish, i.e. how is
> 
> <%= AListVariable[<%= AnotherVariable % >]%> ?
> 
> different from
> 
> <%= AListVariable[AnotherVariable] %> ?

You are correct. I sometimes forget that my <%= %> PSP statement can
include any Python expression to produce the value.



More information about the Mod_python mailing list