Jul-03-2021, 04:46 PM
I tried this: print('Received',data.decode('utf-8') )
This works on 3.3 but not on 2.7.
In Python, is there a way to do something like this, which I could do in C code:
#ifdef version 3.3
doit this way
#else
that way
#endif
So, is there a way, other than supplying two sets of code to do this?
This works on 3.3 but not on 2.7.
In Python, is there a way to do something like this, which I could do in C code:
#ifdef version 3.3
doit this way
#else
that way
#endif
So, is there a way, other than supplying two sets of code to do this?