Is there a simpler way to modify all arguments in a function before using the 
arguments?

For example, can the below code, in the modify arguments section be made into a 
few statements?  

    def someComputation (aa, bb, cc, dd, ee, ff, gg, hh):
       # modify arguments
       # ----------------------
        aa = aa.replace (“_” , “”)
        bb=  bb.replace (“_” , “”)
        cc = cc.replace (“_” , “”)
        dd = dd.replace (“_” , “”)
        ee = ee.replace (“_” , “”)
        ff = ff.replace (“_” , “”)
        gg = gg.replace (“_” , “”) 
        hh = hh.replace (“_” , “”)

       # use the arguments
       # -----------------
       # …

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to