X-Received: by 10.66.248.69 with SMTP id yk5mr9675127pac.16.1438464255434; Sat, 01 Aug 2015 14:24:15 -0700 (PDT) X-Received: by 10.140.19.208 with SMTP id 74mr88649qgh.0.1438464255330; Sat, 01 Aug 2015 14:24:15 -0700 (PDT) Path: csiph.com!usenet.pasdenom.info!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!news.ripco.com!news.glorb.com!pg9no6140598igb.0!news-out.google.com!78ni2533qge.1!nntp.google.com!69no3315226qgl.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.python Date: Sat, 1 Aug 2015 14:24:15 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2001:7c0:409:8e94:2ad2:44ff:fe4e:e3fb; posting-account=c0OpZwoAAAB6uBQmwP25np1KKgAxXnv5 NNTP-Posting-Host: 2001:7c0:409:8e94:2ad2:44ff:fe4e:e3fb References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Most pythonic way of rotating a circular list to a canonical point From: Lukas Barth Injection-Date: Sat, 01 Aug 2015 21:24:15 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: csiph.com comp.lang.python:94866 Perhaps I should clarify a bit: - I definitely need a "canonical rotation" - just a comparison result is not enough - It does not matter what that rotation is. Starting with the smallest element was just an idea by me, any rotation that can easily produced will do.