define

Marcus Alanen marcus at infa.abo.fi
Thu May 8 09:44:25 EDT 2003


On Thu, 08 May 2003 13:42:51 +0100, Turhan Ozen <txo at cs.nott.ac.uk> wrote:
>in c it is possible to define
>
>#define PH x[1]
> 
>so PH = 3 means x[1]=3
>
>how can I do this in python?

You don't. Python doesn't have macros of any kind.

Naturally you can use a macro preprocessor on Python files anyway.

Marcus




More information about the Python-list mailing list