Most pythonic way of rotating a circular list to a canonical point

Lukas Barth mail at
Sat Aug 1 23:12:07 CEST 2015

On Saturday, August 1, 2015 at 10:51:03 PM UTC+2, Emile van Sebille wrote:
> Is the problem to determine if one list of circular numbers 'matches' 
> another one despite rotation status?  If so, I'd do something like:

Well.. no. I actually really need this "canonical" rotation, since I'm hashing this, returning it to other parts of the software, etc..

But thanks!


More information about the Python-list mailing list