[Zope-dev] Re: Pointless code in ZPublisher.HTTPRequest ?

Paul Winkler pw_lists at slinkp.com
Tue Aug 31 16:09:57 EDT 2004


On Tue, Aug 31, 2004 at 09:51:26PM +0200, yuppie wrote:

> I'd say the sole purpose is what you describe, but the result of the 
> side effect is used in the next line of 'keys':
> 
>   keys.update(self.other)
> 
> This small script shows that the code in 'keys' triggers the computing 
> of URLx and BASEx:
> 
>   print context.REQUEST.other.keys()
>   context.REQUEST.keys()
>   print context.REQUEST.other.keys()
>   return printed

Ahh, thanks, that clears it up.
Methinks this code could use an explanatory comment;
I'm checking one in on svn HEAD.

-- 

Paul Winkler
http://www.slinkp.com


More information about the Zope-Dev mailing list