python-list at python.org

Vincent A. Primavera vincent_a_primavera at netzero.net
Thu Apr 12 04:51:22 EDT 2001


Hello,
	What I am trying to accomplish is to shorten statements such as 
stdscr.addstr(10, 10, 'This is a test...', curses.color_pair(1))... ;o} 
nothing too complicated.

	Thank You,
	Vincent A. Primavera

On Thursday 12 April 2001 12:40, Steve Purcell wrote:
> 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




More information about the Python-list mailing list