On Sun, 16 Apr 2017 05:34 am, Debiller 777 wrote:
> >>> &mypattern='<'str'>'
That's a syntax error. Are you sure that's the actual, real, working code
you are using?
> >>> def &mynewpattern:
> ... return MyClass(list)
That's also a syntax error.
--
Steve
“Cheer up,” they said, “things
So.Basically recently I just faced with some problem. I wanted to create my
own data type. I created new class put something in it. But I really wanted to
set items in it like so:
>>>datatype[0][0][1]=1
As you could see I used 3 keys But magic method __setitem__ alows me