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

Tino Wildenhain tino at wildenhain.de
Tue Aug 31 16:31:47 EDT 2004


Am Di, den 31.08.2004 schrieb Paul Winkler um 19:08:
> Can anyone enlighten me on what this is for?
> >From ZPublisher.HTTPRequest.HTTPRequest.keys:
...
> 
> ** btw, this too smells a bit funny to me... why bother to keep a 
> separate data structure in sync, when we could just do:
> 
>     for i in range(9):
>         try:
>             del(self.other['URL%d' % i])
>             i += 1
are you sure about the increment here?

>         except KeyError:
>             break
> 

Regards
Tino



More information about the Zope-Dev mailing list