2013/9/19 Giovanni Porcari <[email protected]>:
> result = x>0 and (((x>67) and 67) or x)  or (((x<-67) and -67) or x)

2013/9/19 Andrea Ambu <[email protected]>:
> x = -67 if x < -67 else min(x, 67)

entrambe hanno prestazioni molto vicine a quella di Diego.
_______________________________________________
Python mailing list
[email protected]
http://lists.python.it/mailman/listinfo/python

Rispondere a