How to convert a ">" into a >

dominique MyDomDom at
Sat Jun 21 13:17:49 CEST 2008

Hello All,

In a wx GUI,  I would like to let the user choose between >, < or =.
So, I created a combobox and when the user chooses ">" for instance, I
wanted to return > (the objective is to send the operator into another
complex method):
if variable == ">":
return >

But this is invalid syntax.

How can I transform a ">" into the > operator ie without parenthesis,
so that I can load it into another function ?

Thanks in advance


More information about the Python-list mailing list