Result of ``a is b''

DomF fidtz at clara#spam#.co.uk
Thu Mar 18 12:09:13 EST 2004


> Indeed I have not. Probably because basic built-in strings form a type
> that's not a class and you can't inherit from it.
>
Mostly because I am interested in the counter argument:

class mynewstr(str):
...     pass
...
>>> s = mynewstr()
>>> dir(s)
<<list of str stuff>>





More information about the Python-list mailing list