Thank you all for the detailed replies, I appreciate it. I only read
up on this yesterday morning, but I feel I've gotten a lot of insight
in a short time thanks to your contributions to this thread. Useful
all around!
Adam
On Oct 26, 2:50 am, Bruno Desthuilliers wrote:
> Chris Mellon a écrit
Bruno,
I appreciate your attempt to answer my questions below, although I
think my main point was lost amongst all your commentary and
assumptions. :^) I'm not inexperienced, but I take the blame for
the rambling initial post, though, which probably lead to the
confusion.
So let me be more
On Oct 25, 10:52 am, Abandoned <[EMAIL PROTECTED]> wrote:
> Hi..
> I want to delete all now allowed characters in my text.
> I use this function:
>
> def clear(s1=""):
> if s1:
> allowed =
> [u'+',u'0',u'1',u'2',u'3',u'4',u'5',u'6',u'7',u'8',u'9',u' ', u'Þ',
> u'þ', u'Ö', u'ö', u'Ü', u'
As an exercise I'm attempting to write a metaclass that causes an
exception to be thrown whenever a user tries to access
'attributes' (in the traditional sense) via a direct reference.
Consider:
class X( object ):
y = 'private value'
def get_y( self ): return self.y
Normally