Deutsch English Français Italiano |
<v4n9r4$5q7f$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!news.nobody.at!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: HenHanna <HenHanna@devnull.tb> Newsgroups: comp.lang.python Subject: - 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? Date: Sun, 16 Jun 2024 11:10:43 -0700 Organization: A noiseless patient Spider Lines: 9 Message-ID: <v4n9r4$5q7f$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sun, 16 Jun 2024 20:10:45 +0200 (CEST) Injection-Info: dont-email.me; posting-host="15d315eb6699321768c126a81b6bef90"; logging-data="190703"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19UVNxH2Zgv3c8j+OQ8VlAui5kyR0yzI2o=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:6buaJ9vFCU21xeOAHKE/yXj/mxA= Content-Language: en-US Bytes: 1222 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?