Author jjdominguezm
Recipients BreamoreBoy, amaury.forgeotdarc, eric.araujo, jjdominguezm, lukasz.langa
Date 2010-08-07.10:06:55
SpamBayes Score 7.34151e-05
Marked as misclassified No
Message-id <1281175617.53.0.580253745116.issue6751@psf.upfronthosting.co.za>
In-reply-to
Content
I would like the method to have the exact same behavior as before if the "default" argument is not present, and return the given default value when "deafult" argument is present.

If you simply add a "default" keyword, it will always be present and you wouldn't know if the user wants the exception thrown or the default value returned.

Do you know how to program this using a "default" keyword argument?
History
Date User Action Args
2010-08-07 10:06:57jjdominguezmsetrecipients: + jjdominguezm, amaury.forgeotdarc, eric.araujo, BreamoreBoy, lukasz.langa
2010-08-07 10:06:57jjdominguezmsetmessageid: <1281175617.53.0.580253745116.issue6751@psf.upfronthosting.co.za>
2010-08-07 10:06:55jjdominguezmlinkissue6751 messages
2010-08-07 10:06:55jjdominguezmcreate