From: shawn bright Date: 2007-04-18T02:44:23+09:00 Subject: how to have a default argument ------=_Part_21949_6234964.1176831861319 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline hello all, i have a function that sometimes needs to be passed a variable, but sometimes not. def get_some_records(year) get records for year process them return result end the thing is, i already have it written, but i would like to have a default like if get_some_records() is called, year would be assumed to be 2007 is there a way i can do this without having to change everywhere it is called in my code? thanks sk ------=_Part_21949_6234964.1176831861319--