Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > fr.comp.lang.python > #3156

Re: Langages [Was :[ANN] Crésus, KK Commander, Litchi]

X-Received by 2002:a0c:bec9:: with SMTP id f9mr4399956qvj.43.1550053783001; Wed, 13 Feb 2019 02:29:43 -0800 (PST)
X-Received by 2002:a0d:d205:: with SMTP id u5mr50596ywd.3.1550053782853; Wed, 13 Feb 2019 02:29:42 -0800 (PST)
Path csiph.com!xmission!news.snarked.org!border2.nntp.dca1.giganews.com!nntp.giganews.com!m21no1192011qta.0!news-out.google.com!q39ni686qtk.1!nntp.google.com!m21no1192003qta.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups fr.comp.lang.python
Date Wed, 13 Feb 2019 02:29:42 -0800 (PST)
In-Reply-To <87imxpttrv.fsf@izac.org>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=89.167.129.96; posting-account=wzG80QkAAAC-bmODxke1cVjpePoEKRzz
NNTP-Posting-Host 89.167.129.96
References <q3cff1$1e96$1@gioia.aioe.org> <q3l5gc$c31$1@gioia.aioe.org> <q3m7od$q09$1@gioia.aioe.org> <q3m851$rjm$1@gioia.aioe.org> <q3m9r8$131c$1@gioia.aioe.org> <q3n273$ija$1@gioia.aioe.org> <gc91auFkf9jU1@mid.individual.net> <q3ok8t$1b45$1@gioia.aioe.org> <gcb6drF4f7oU1@mid.individual.net> <q3pspr$kku$1@golgoth99.hacktruck.net> <gcbl3tF7kmnU1@mid.individual.net> <87va1qu9fu.fsf@izac.org> <gccn5aFegapU1@mid.individual.net> <87r2cetclv.fsf@izac.org> <gceet3FqhtbU1@mid.individual.net> <87imxpttrv.fsf@izac.org>
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <149eac36-8a9e-4d78-85fa-ac90a2b2052c@googlegroups.com> (permalink)
Subject Re: Langages [Was :[ANN] Crésus, KK Commander, Litchi]
From pehache.7@gmail.com
Injection-Date Wed, 13 Feb 2019 10:29:42 +0000
Content-Type text/plain; charset="UTF-8"
Content-Transfer-Encoding quoted-printable
Lines 34
Xref csiph.com fr.comp.lang.python:3156

Show key headers only | View raw


Le mardi 12 février 2019 07:17:41 UTC+1, Benoit Izac a écrit :
> Bonjour,
> 
> Le 12/02/2019 à 00:30, pehache a écrit dans le message
> <gceet3FqhtbU1@mid.individual.net> :
> 
> >> Je t'invite à lire Fluent Python qui renvoi vers cet article
> >> <https://www.cs.utexas.edu/users/EWD/transcriptions/EWD08xx/EWD831.html>
> >> qui indique « the nicer range 0 ≤  i < N ».
> >
> > Article qui contient une erreur : en Fortran l'index ne commence pas
> > forcément à 1, mais à ce qu'on veut (le démarrage à 1 n'est que par
> > défaut si on ne précise rien).
> 
> Je t'invite à contacter l'auteur de l'article, 35 ans plus tard, il sera
> enchanté de l'apprendre. ;-)
> 
> > Soit-dit en passant la convention inclus-inclus permet en Fortran
> > d'exprimer simplement une section parcourue dans l'autre sens, avec un
> > stride négatif et en inversant les bornes :
> > a(i:j) --> a(j:i:-1)
> >
> > Avec la convention inclus-exclus ça va moins bien ;
> > a[i:j] --> a[j-1:i-1:-1]
> 
> reversed(a[i:j])    # et voilà !
> 

Ce n'est pas la même chose. Tu ne peux par exemple pas assigner des valeurs à reversed(a[i:j]), alors que tu peux à a[j-1:i-1:-1].

Back to fr.comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Re: Langages [Was :[ANN] Crésus, KK Commander, Litchi] Doug713705 <doug.letough@free.fr> - 2019-02-10 19:07 +0000
  Re: Langages [Was :[ANN] Crésus, KK Commander, Litchi] pehache <pehache.7@gmail.com> - 2019-02-10 22:58 +0100
    Re: Langages [Was :[ANN] Crésus, KK Commander, Litchi] Benoit Izac <use.reply.to@INVALID.ADDRESS> - 2019-02-11 07:27 +0100
      Re: Langages [Was :[ANN] Crésus, KK Commander, Litchi] pehache <pehache.7@gmail.com> - 2019-02-11 08:39 +0100
        Re: Langages [Was :[ANN] Crésus, KK Commander, Litchi] Benoit Izac <use.reply.to@INVALID.ADDRESS> - 2019-02-11 19:16 +0100
          Re: Langages [Was :[ANN] Crésus, KK Commander, Litchi] pehache <pehache.7@gmail.com> - 2019-02-12 00:30 +0100
            Re: Langages [Was :[ANN] Crésus, KK Commander, Litchi] Benoit Izac <use.reply.to@INVALID.ADDRESS> - 2019-02-12 07:17 +0100
              Re: Langages [Was :[ANN] Crésus, KK Commander, Litchi] Jean-Baptiste Faure <jbf@no-email-on-usenet.fr> - 2019-02-13 10:32 +0100
                Re: Langages [Was :[ANN] Crésus, KK Commander, Litchi] Benoit Izac <use.reply.to@INVALID.ADDRESS> - 2019-02-14 21:36 +0100
                Re: Langages [Was :[ANN] Crésus, KK Commander, Litchi] Jean-Baptiste Faure <jbf@no-email-on-usenet.fr> - 2019-02-15 11:47 +0100
              Re: Langages [Was :[ANN] Crésus, KK Commander, Litchi] pehache.7@gmail.com - 2019-02-13 02:29 -0800
                Re: Langages [Was :[ANN] Crésus, KK Commander, Litchi] Doug713705 <doug.letough@free.fr> - 2019-02-13 19:38 +0000
                Re: Langages [Was :[ANN] Crésus, KK Commander, Litchi] pehache <pehache.7@gmail.com> - 2019-02-13 22:01 +0100
                Re: Langages [Was :[ANN] Crésus, KK Commander, Litchi] Doug713705 <doug.letough@free.fr> - 2019-02-14 06:17 +0000
                Re: Langages [Was :[ANN] Crésus, KK Commander, Litchi] pehache <pehache.7@gmail.com> - 2019-02-14 09:16 +0100
    Re: Langages [Was :[ANN] Crésus, KK Commander, Litchi] Doug713705 <doug.letough@free.fr> - 2019-02-11 07:46 +0000
      Re: Langages [Was :[ANN] Crésus, KK Commander, Litchi] pehache.7@gmail.com - 2019-02-11 06:57 -0800
        Re: Langages [Was :[ANN] Crésus, KK Commander, Litchi] Doug713705 <doug.letough@free.fr> - 2019-02-11 18:34 +0000
          Re: Langages [Was :[ANN] Crésus, KK Commander, Litchi] Lulu <lulu042@fry.fr.invalid> - 2019-02-12 09:59 +0100
          Re: Langages [Was :[ANN] Crésus, KK Commander, Litchi] pehache.7@gmail.com - 2019-02-13 03:04 -0800
            Re: Langages [Was :[ANN] Crésus, KK Commander, Litchi] Doug713705 <doug.letough@free.fr> - 2019-02-13 19:27 +0000
              Re: Langages [Was :[ANN] Crésus, KK Commander, Litchi] pehache <pehache.7@gmail.com> - 2019-02-14 09:23 +0100
                Re: Langages [Was :[ANN] Crésus, KK Commander, Litchi] Doug713705 <doug.letough@free.fr> - 2019-02-14 10:03 +0000
                Re: Langages [Was :[ANN] Crésus, KK Commander, Litchi] pehache <pehache.7@gmail.com> - 2019-02-16 14:04 +0100
                Re: Langages [Was :[ANN] Crésus, KK Commander, Litchi] Doug713705 <doug.letough@free.fr> - 2019-02-16 20:24 +0000
                Re: Langages [Was :[ANN] Crésus, KK Commander, Litchi] pehache <pehache.7@gmail.com> - 2019-02-23 15:22 +0100
                Re: Langages [Was :[ANN] Crésus, KK Commander, Litchi] marco@trifouillis.com - 2019-02-14 11:16 +0100
              Re: Langages [Was :[ANN] Crésus, KK Commander, Litchi] pehache.7@gmail.com - 2019-02-14 03:11 -0800

csiph-web