[Zope-dev] funky side-effects, possible bug in HTTPRequest.py

Dieter Maurer dieter@handshake.de
Fri, 20 Jun 2003 20:50:36 +0200


Jamie Heilman wrote at 2003-6-20 03:07 -0700:
 > ...
 > That magical promotion of the key & value to the other dictionary is
 > what tripped me up.  This technique, while originally used only for
 > known convenience variables like URLx or BASEx and for promoting lazy
 > data, now applies to all variables after revision 1.75.

Zope promotes the variables from "cookies" and "form" to "other"
at least since Zope 2.1.6 (the first version I worked with).

I think this is for efficiency reasons. You have a single
dictionary lookup instead of three ("other", "form", "cookie").


Dieter