so, I assign x = 1,2
Then call it
x
>>> (1,2)
OR
some_function(x) is passed the tuple (1,2)
What method or configuration in the class is doing that?
I ask because I want to create a class "myclass" and when I call an instance the instance should return the values assigned to it
When I asked this question another way the responses thus far have been along the lines of create a method...but I don't want to use x.vals to get the values from x, I just want to use x.
How is this done ?
...and what I really really want is an example of the class code so I can put it in my class :)
Oh, better tag suggestions are MOST welcome. Not knowing the jargon puts me at a real disadvantage here