python-list at python.org

Steve Purcell stephen_purcell at yahoo.com
Thu Apr 12 08:40:18 EDT 2001


Vincent A. Primavera wrote:
> Hello,
> 	Does Python have an equivalent to C's #define?
> 
> 	ie: #define abc 123

Fortunately not.

It does, however, have a neat assignment feature:   <wink>

      abc = 123

Is there a particular situation in which you think a '#define' equivalent
might help you?

-Steve

-- 
Steve Purcell, Pythangelist
Get testing at http://pyunit.sourceforge.net/
Any opinions expressed herein are my own and not necessarily those of Yahoo




More information about the Python-list mailing list