Defining/declaring constants in Python

Sriram Chadalavada swenggsri at yahoo.com
Mon Jul 28 13:49:58 EDT 2003


Hello everyone,
  I am a newbie to Python with experience in C programming. For my
project, I am re-writing C routines as Python functions.
      I am currently using raw numerical values and  was wondering if
there is an equivalent of #define in Python for declaring constants.
 	 Is there an elegant way of defining constants in Python? Please let
me know.
                     
Thanks,
Sriram




More information about the Python-list mailing list