Path: csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!nntp.club.cc.cmu.edu!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Martin =?UTF-8?Q?Sch=C3=B6=C3=B6n?= Newsgroups: comp.lang.python Subject: Re: How to rearrange array using Python? Date: 31 Jul 2015 20:40:42 GMT Organization: @ Home Lines: 18 Message-ID: References: <1468455.P0rGZF1LBf@PointedEars.de> X-Trace: individual.net 56trAhf9po5pkZ+1FQvJJAm56qd+XGaPsvxdv0xjxawxfQ9f9r Cancel-Lock: sha1:g8DId/bRXqph83WvIviMzUZwXbY= User-Agent: slrn/pre1.0.0-18 (Linux) Xref: csiph.com comp.lang.python:94818 Den 2015-07-31 skrev Thomas 'PointedEars' Lahn : > Mark Lawrence wrote: >> >> I'm not absolutely certain but I think you're into what's known as a >> constraint satisfaction problem, in which case this >> https://pypi.python.org/pypi/python-constraint/1.2 is as good a starting >> point as any. If I'm wrong we'll soon get told :) > > It is a CSP indeed, and as I was reading the OP I was thinking of SWI- > Thanks guys, I will follow up on the CSP lead. It is not something I have prior experience of so it will be interesting. > Please trim your quotes to the relevant minimum. > Indeed. /Martin