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 >> python-list
python-list
Re: python development practices?
by Paul Rubin other posts by this author
Oct 31 2001 5:58AM messages near this date
Re: python development practices? | Re: Interfaces != Multiple Inheritance [was Re: python development practices?]
Peter Wang <pzw1[nospam]@hotmail.com>  writes:
>  i don't think data hiding's purpose is to keep rogue programmers in
>  line.  it's partly to insulate imperfect development practice (e.g.
>  sloppy documentation) and partly to define an interface for a class.

Keeping rogue programmers in line is a perfectly legitimate use of
data hiding.  For example, look at java applets on web pages.  These
have to run in the same JVM as parts of the browser, and yet the
applets can be hostile.  So the language has to protect the browser
internals from the loaded applets.  Another example is security
interfaces where the class instances contain authentication
credentials and the application should be able to use them but not
copy them.

Python provides a restricted execution hack (rexec/bastion) to deal
with the applet situation, but it's a pain for the second situation
because you have to wrap the caller in the rexec shell, rather than
wrapping the secure object in a security shell and leaving the caller
unrestricted.

The best way I've managed to deal with this is to put the secure
objects in a totally separate process and access them by RPC.
That, too, is a kludge, though.
-- 
http://mail.python.org/mailman/listinfo/python-list
Thread:
Peter Wang
Peter Hansen
Toby Dickenson
Tim Peters
Steve Holden
Steve Holden
Cliff Wells
Tim Peters
Martijn Faassen

Cliff Wells
Cliff Wells
Martijn Faassen
Martijn Faassen
Paul Rubin
Russell E. Owen
Barry A. Warsaw
Martijn Faassen
Peter Wang
Skip Montanaro
John Roth
David Bolen
Peter Wang
Peter Wang
Skip Montanaro
Chris Tavares
Darren Collins
David Bolen
Paul Rubin
Paul Rubin
Peter Wang
F Basegmez
Richard Jones

Richard Jones

Neal Norwitz
Graham Ashton
Peter Wang
Russell E. Owen
Skip Montanaro
Cliff Wells
Hung Jung Lu
Wade Leftwich
Peter Wang
Peter Wang


Peter Wang

Chris Gonnerman
Paul Rubin
Andrew Dalke
Paul Rubin
Luigi Ballabio
Paul Rubin
Tim Peters
John Roth
Paul Rubin
Richard Jones

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