How to assign a default constant value in a function declaration

Ben Finney bignose-hates-spam at and-benfinney-does-too.id.au
Sun Apr 4 23:19:18 EDT 2004


On Sun, 4 Apr 2004 19:26:30 -0400, 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):

That's not a question.

Is there something that isn't behaving as you expect?  If so, please
explain what you expect, and what you're actually experiencing.

-- 
 \        "I took a course in speed waiting. Now I can wait an hour in |
  `\                              only ten minutes."  -- Steven Wright |
_o__)                                                                  |
Ben Finney <http://bignose.squidly.org/>



More information about the Python-list mailing list