define

John Roth johnroth at ameritech.net
Thu May 8 09:44:59 EDT 2003


"Turhan Ozen" <txo at cs.nott.ac.uk> wrote in message
news:3EBA50CB.2040306 at cs.nott.ac.uk...
> 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?

No. Python does not have a preprocessor. I'm not
at all sure I'd want to do what you seem to want
anyway: it seems that it is unnecessarily obscure.

John Roth
>






More information about the Python-list mailing list