How to assign a default constant value in a function declaration
Peter Hansen
peter at engcorp.com
Sun Apr 4 22:46:41 EDT 2004
Vineet Jain wrote:
> The following does not work although it seems like something you should be
> able to do.
>
> def someFunction(option=Constants.DEFAULT_VALUE):
Please post the actual error traceback you are getting, and a
better description of "does not work". Your problem could be
just about anything at this point...
-Peter
More information about the Python-list
mailing list