[Zope-dev] Why is it _setObject(), and why is it undocumented

Dieter Maurer dieter@handshake.de
Tue, 4 Feb 2003 20:01:59 +0100


Leonardo Rochael Almeida wrote at 2003-2-3 18:42 -0200:
 > ...
 > Let's not confuse this with TTW public methods. _setObject should
 > obviously not be made TTW accessible (let alone TTW public :-), but it
 > should be a "public" method, that is, have a sensible name and be
 > specified in an eventual IObjectManager interface
I think an additional reason for the "_" in the name of
"_setObject" is to prevent acquisition.

With acquisition, you may not set the object where you think you will.


Dieter