ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> zope-Dev
zope-Dev
Re: [Zope-dev] Why is it _setObject(), and why is it undocumented
by Lennart Regebro other posts by this author
Feb 1 2003 1:37PM messages near this date
Re: [Zope-dev] Why is it _setObject(), and why is it undocumented | Re: [Zope-dev] Why is it _setObject(), and why is it undocumented
From: "maxm" <maxm@[...].dk> 
>  Usually a private method is used purely as a mean of implementation. And
>  should never be called from other objects. This is not the case here, as
>  the method is clearly a part of the api.

Well, no, it isn't really, since it starts with _. However, python do not in
itself enforce privacy, so therefore you *can* call it. But by starting it
with _ it is private by convention. Zope also implements some of this
privacy, so you can't call it from Python scripts and so on.


_______________________________________________
Zope-Dev maillist  -  Zope-Dev@[...].org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )
Thread:
maxm
Florent Guillaume
Florent Guillaume
Lennart Regebro
Dieter Maurer
Lennart Regebro
Max M
Leonardo Rochael Almeida
Dieter Maurer
maxm
Dieter Maurer

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved