Hello All,
How does one make an arbitrary class (e.g. class myclass(object) ) behave like
a list in method calls with the "*something " operator? What I mean is:
myobj = myclass()
doit(*myobj)
I've looked at getitem, getslice, and iter. What is it if not one of these?
And, how about the "**somethin g" operator?
James
--
James Stroud
UCLA-DOE Institute for Genomics and Proteomics
Box 951570
Los Angeles, CA 90095
How does one make an arbitrary class (e.g. class myclass(object) ) behave like
a list in method calls with the "*something " operator? What I mean is:
myobj = myclass()
doit(*myobj)
I've looked at getitem, getslice, and iter. What is it if not one of these?
And, how about the "**somethin g" operator?
James
--
James Stroud
UCLA-DOE Institute for Genomics and Proteomics
Box 951570
Los Angeles, CA 90095
Comment