However, it appears that somehow this object prints the value of 's'
attribute without me setting any specific methods to do that:
>
'abcdef'
'ABCDEF'
attribute without me setting any specific methods to do that:
>
>>astr = lstr('abcdef')
>>astr
>>astr
>>astr.swapcase ()
>>astr = lstr('abcdef')
>>astr.s
>>astr.s
>>astr.s='xyzzy '
>>astr
>>astr
>>astr.s
So my updated question is where does this lstr() instance keep the
original value ('abcdef')? It obviously has smth to do with inheriting
after str class, but I don't get the details of the mechanism.