On Jan 4, 2008 11:55 PM, Steven W. Orr <[EMAIL PROTECTED]> wrote:

> class S(int):
>     def __init__(self, value):
>        self.value = value
>     def addStr(self, str):
>        self.doc = str
>

The original question has already been answered,
I only want to suggest to avoid shadowing builtin names,
like str in the above example.

Bye,
Francesco
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to