- for (i, j) in zip(x, x[1:])) - for i, j in zip(x, x[1:])) Do these 2 lines compile to the same Bytecode?

Liste des GroupesRevenir à cl python 
Sujet : - for (i, j) in zip(x, x[1:])) - for i, j in zip(x, x[1:])) Do these 2 lines compile to the same Bytecode?
De : HenHanna (at) *nospam* devnull.tb (HenHanna)
Groupes : comp.lang.python
Date : 16. Jun 2024, 20:10:43
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v4n9r4$5q7f$1@dont-email.me>
User-Agent : Mozilla Thunderbird
      def diff1(x):
         return all(abs(i-j) == 1 for (i, j) in zip(x, x[1:]))
                - for (i, j) in zip(x, x[1:]))
                - for  i, j  in zip(x, x[1:]))
Do the above 2 lines compile to the same Bytecode?

Date Sujet#  Auteur
16 Jun 24 * - for (i, j) in zip(x, x[1:])) - for i, j in zip(x, x[1:])) Do these 2 lines compile to the same Bytecode?2HenHanna
17 Jun 24 `- Re: Do these 2 lines compile to the same Bytecode? (Posting On Python-List Prohibited)1Lawrence D'Oliveiro

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal