Santiago Romero, 12.11.2009 17:43: > Is there a Python version of C's language #define statements? > > Example: > > #define ReadMem( (x) ) memory[ (x) ]
Yes: ReadMem = memory.__getitem__ Stefan -- http://mail.python.org/mailman/listinfo/python-list
Santiago Romero, 12.11.2009 17:43: > Is there a Python version of C's language #define statements? > > Example: > > #define ReadMem( (x) ) memory[ (x) ]
Yes: ReadMem = memory.__getitem__ Stefan -- http://mail.python.org/mailman/listinfo/python-list