Re: OT(Slightly): Thanks to Python.

From: Aahz (aahz_at_pythoncraft.com)
Date: 03/10/04


Date: 10 Mar 2004 17:48:51 -0500

In article <99dce321.0403101234.49d7f9f5@posting.google.com>,
David M. Wilson <dw-google.com@botanicus.net> wrote:
>"David M. Cook" <davecook@nowhere.net> wrote...
>>
>> Python lacks access controls (private/protected etc), though you can
>> use __ name munging.
>
>In an entirely speculative tone, is this correct? I thought new-style
>objects supported protected attributes and such via properties. This
>might be completely incorrect, my head has been like a sieve for the
>last few months. :(

Thing is, in order to store data with a property, there needs to
eventually be a real Python object -- anyone with access to the source
can figure out how to get to it. Heck, they can just modify the source.

-- 
Aahz (aahz@pythoncraft.com)           <*>         http://www.pythoncraft.com/
"Do not taunt happy fun for loops. Do not change lists you are looping over."
--Remco Gerlich, comp.lang.python


Relevant Pages

  • Re: OT(Slightly): Thanks to Python.
    ... "David M. Cook" wrote... ... > name munging. ... In an entirely speculative tone, ... I thought new-style ...
    (comp.lang.python)
  • The Washington scandal that wasnt
    ... agent Valerie Plame. ... one Joseph Wilson that accused the president of twisting intelligence. ... So demanded David Corn of The Nation magazine. ... Armitage -- and that Patrick Fitzgerald has known this truth for close ...
    (sci.med.diseases.lyme)
  • Re: History not kept
    ... "David G. Wilson" wrote in message ... > The history is not being kept; except for the current browser session and ... All other views are empty. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: help with a basic differentiability and derivative function
    ... I am replying to my own post to add an additional final paragraph to further ... clarify. ... >> David L. Wilson wrote: ...
    (sci.math.num-analysis)
  • Re: Understanding and working with __metaclass__
    ... HTH, ... David M. Wilson wrote: ... >journeying off on my own with it will lead to some terrible habit ...
    (comp.lang.python)