Re: Public attributes with really private data

2009-05-08 Thread Mark Summerfield
On 8 May, 13:56, Peter Otten <__pete...@web.de> wrote: > Mark Summerfield wrote: > > On 8 May, 08:19, Peter Otten <__pete...@web.de> wrote: > >> MarkSummerfieldwrote: > >> > I had a quick search & didn't find anything _nice_ that produced > >> > attributes with really private data, so I came up wit

Re: Public attributes with really private data

2009-05-08 Thread Mark Summerfield
On 8 May, 13:56, Peter Otten <__pete...@web.de> wrote: > MarkSummerfieldwrote: > > On 8 May, 08:19, Peter Otten <__pete...@web.de> wrote: > >> MarkSummerfieldwrote: > >> > I had a quick search & didn't find anything _nice_ that produced > >> > attributes with really private data, so I came up with

Re: Public attributes with really private data

2009-05-08 Thread Peter Otten
Mark Summerfield wrote: > On 8 May, 08:19, Peter Otten <__pete...@web.de> wrote: >> MarkSummerfieldwrote: >> > I had a quick search & didn't find anything _nice_ that produced >> > attributes with really private data, so I came up with a possible >> > solution---for Python 3. >> >> Do really you t

Re: Public attributes with really private data

2009-05-08 Thread Mark Summerfield
[snip] > By the way, your Attribute descriptor stores the value for all instances of > A in the same variable... > > Peter You're right. -- http://mail.python.org/mailman/listinfo/python-list

Re: Public attributes with really private data

2009-05-08 Thread Mark Summerfield
On 8 May, 09:52, Carl Banks wrote: > On May 7, 11:37 pm, MarkSummerfield wrote: > > > > > Hi, > > > I had a quick search & didn't find anything _nice_ that produced > > attributes with really private data, so I came up with a possible > > solution---for Python 3. > > (For Python 2 there does seem

Re: Public attributes with really private data

2009-05-08 Thread Mark Summerfield
On 8 May, 08:19, Peter Otten <__pete...@web.de> wrote: > MarkSummerfieldwrote: > > I had a quick search & didn't find anything _nice_ that produced > > attributes with really private data, so I came up with a possible > > solution---for Python 3. > > Do really you think what you suggest below is "n

Re: Public attributes with really private data

2009-05-08 Thread Carl Banks
On May 7, 11:37 pm, Mark Summerfield wrote: > Hi, > > I had a quick search & didn't find anything _nice_ that produced > attributes with really private data, so I came up with a possible > solution---for Python 3. > (For Python 2 there does seem to be an approach although I'm not > keen on > it:h

Re: Public attributes with really private data

2009-05-08 Thread Peter Otten
Mark Summerfield wrote: > I had a quick search & didn't find anything _nice_ that produced > attributes with really private data, so I came up with a possible > solution---for Python 3. Do really you think what you suggest below is "nice"? By the way, your Attribute descriptor stores the value f

Public attributes with really private data

2009-05-07 Thread Mark Summerfield
Hi, I had a quick search & didn't find anything _nice_ that produced attributes with really private data, so I came up with a possible solution---for Python 3. (For Python 2 there does seem to be an approach although I'm not keen on it: http://www.builderau.com.au/blogs/byteclub/viewblogpost.htm?p