How to assign a default constant value in a function declaration
Mel Wilson
mwilson at the-wire.com
Sun Apr 4 23:24:16 EDT 2004
In article <mailman.341.1081121191.20120.python-list at python.org>,
"Vineet Jain" <vineet at eswap.com> wrote:
>The following does not work although it seems like something you should be
>able to do.
>
>def someFunction(option=Constants.DEFAULT_VALUE):
Certainly seems like it. What's it doing to make you say
it's not working?
Regards. Mel.
More information about the Python-list
mailing list