Alex Hunsley wrote:
> The two main versions I've encountered for data pseudo-hiding
> (encapsulation) in python are:
>
> method 1:
>
> _X - (single underscore) - just cosmetic, a convention to let someone
> know that this data should be private.
>
>
> method 2:
>
> __X - (double unders
Alex Hunsley <[EMAIL PROTECTED]> wrote:
> There's no really specific questions in this post, but I'm looking for
> people's thought on the issues within...
>
>
> The two main versions I've encountered for data pseudo-hiding
> (encapsulation) in python are:
>
> method 1:
>
> _X - (single unde
Steven D'Aprano wrote:
> On Mon, 31 Oct 2005 10:35:19 +, Alex Hunsley wrote:
>
>
>>There's no really specific questions in this post, but I'm looking for
>>people's thought on the issues within...
>>
>>
>>The two main versions I've encountered for data pseudo-hiding
>>(encapsulation) in pyt
Alex Hunsley wrote:
> bruno at modulix wrote:
>
>> Alex Hunsley wrote:
>>
(snip)
>>>
>>> method 1:
>>>
>>> _X - (single underscore) - just cosmetic, a convention to let someone
>>> know that this data should be private.
>>>
>>>
>>> method 2:
>>>
>>> __X - (double underscore) - mangles the na
Jorge Godoy wrote:
> Alex Hunsley <[EMAIL PROTECTED]> writes:
>
>
>>Btw, can you recall the subject line of the thread? I'd like to google groups
>>for it and have a read of that thread...
>>ta!
>
>
> Search for: "alex martelli pychecker" on comp.lang.python... I don't have the
> thread's name
On Mon, 31 Oct 2005 10:35:19 +, Alex Hunsley wrote:
> There's no really specific questions in this post, but I'm looking for
> people's thought on the issues within...
>
>
> The two main versions I've encountered for data pseudo-hiding
> (encapsulation) in python are:
>
> method 1:
>
> _
Alex Hunsley <[EMAIL PROTECTED]> writes:
> Btw, can you recall the subject line of the thread? I'd like to google groups
> for it and have a read of that thread...
> ta!
Search for: "alex martelli pychecker" on comp.lang.python... I don't have the
thread's name anymore. You'll probably find mor
Jorge Godoy wrote:
> Alex Hunsley <[EMAIL PROTECTED]> writes:
>
>
>>Sorry, I wasn't being clear. What I should have said is that I don't like the
>>idea of a typo in an assignment causing the assigning of the wrong thing.
>>e.g. imagine a simple value-holding class:
>>
>>class Values:
>> pas
Jorge Godoy wrote:
> Alex Hunsley <[EMAIL PROTECTED]> writes:
>
>
>>Sorry, I wasn't being clear. What I should have said is that I don't like the
>>idea of a typo in an assignment causing the assigning of the wrong thing.
>>e.g. imagine a simple value-holding class:
>>
>>class Values:
>> pas
Alex Hunsley <[EMAIL PROTECTED]> writes:
> Sorry, I wasn't being clear. What I should have said is that I don't like the
> idea of a typo in an assignment causing the assigning of the wrong thing.
> e.g. imagine a simple value-holding class:
>
> class Values:
> pass
>
> v = Values()
>
> v
bruno at modulix wrote:
> Alex Hunsley wrote:
>
>>There's no really specific questions in this post, but I'm looking for
>>people's thought on the issues within...
>>
>>
>>The two main versions I've encountered for data pseudo-hiding
>>(encapsulation)
>
>
>
> Hmmm... Are data-hiding and encaps
Alex Hunsley wrote:
> There's no really specific questions in this post, but I'm looking for
> people's thought on the issues within...
>
>
> The two main versions I've encountered for data pseudo-hiding
> (encapsulation)
Hmmm... Are data-hiding and encapsulation really the same things ?
> i
There's no really specific questions in this post, but I'm looking for
people's thought on the issues within...
The two main versions I've encountered for data pseudo-hiding
(encapsulation) in python are:
method 1:
_X - (single underscore) - just cosmetic, a convention to let someone
13 matches
Mail list logo