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

2004-08-31 Thread yuppie
Hi! Paul Winkler wrote: From ZPublisher.HTTPRequest.HTTPRequest.keys: n=0 while 1: n=n+1 key = URL%s % n if not self.has_key(key): break n=0 while 1: n=n+1 key = BASE%s % n if not

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

2004-08-31 Thread Paul Winkler
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