Path: ...!weretis.net!feeder6.news.weretis.net!feeder8.news.weretis.net!news.trigofacile.com!usenet-fr.net!agneau.org!nntpfeed.proxad.net!proxad.net!feeder1-1.proxad.net!212.27.60.64.MISMATCH!cleanfeed3-b.proxad.net!nnrp1-2.free.fr!not-for-mail Date: Wed, 8 Dec 2021 15:57:53 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.3.2 Subject: =?UTF-8?Q?Re=3a_Un_code_que_j=27ai_mis_du_temps_=c3=a0_comprendre?= Content-Language: fr Newsgroups: fr.comp.lang.python References: <61af2e22$0$28605$426a34cc@news.free.fr> <61b061ca$0$5000$426a74cc@news.free.fr> <61b06d70$0$6469$426a74cc@news.free.fr> From: Nicolas In-Reply-To: <61b06d70$0$6469$426a74cc@news.free.fr> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Lines: 16 Message-ID: <61b0c7f1$0$28583$426a74cc@news.free.fr> Organization: Guest of ProXad - France NNTP-Posting-Date: 08 Dec 2021 15:57:53 CET NNTP-Posting-Host: 195.101.33.1 X-Trace: 1638975473 news-2.free.fr 28583 195.101.33.1:21332 X-Complaints-To: abuse@proxad.net Bytes: 1754 Le 08/12/2021 à 09:31, ast a écrit : > Le 08/12/2021 à 08:42, Nicolas a écrit : >> Le 07/12/2021 à 10:49, ast a écrit : > >> >> C'est "malin" mais c'est très très moche. >> Les codes incompréhensibles comme ça, c'est bien pour le fun mais en >> production... > > Il y a un module more_itertools que j'ai découvert il n'y a pas > très longtemps avec "chunked" pour réaliser cette opération. > > https://more-itertools.readthedocs.io/en/stable/ Très intéressant. Merci pour le lien.