After learning about how default arguments work in python, I went over all my code to look for potential bugs occuring when using mutable sequences.
Now I have a function whose signature is:
def get_measurements(self, shape = slice(None, None, None), 
                     size = slice(None, None, None), 
                     height = slice(None, None, None), 
                     pressure = slice(None, None, None),  
                     LE = slice(None, None, None),                          
                     fname = None)
And I'm wondering now, are slice objects mutable? And will this cause a problem in above case with default values?
 
                        
sliceobjects are not mutable.