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


Groups > comp.os.linux.misc > #81359

Re: Python: A Little Trick For Every Need

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From ram@zedat.fu-berlin.de (Stefan Ram)
Newsgroups comp.os.linux.misc
Subject Re: Python: A Little Trick For Every Need
Date 20 Jan 2026 17:40:10 GMT
Organization Stefan Ram
Lines 43
Expires 1 Feb 2027 11:59:58 GMT
Message-ID <Python-20260120183939@ram.dialup.fu-berlin.de> (permalink)
References <KxCdncm5tZ0oM_D0nZ2dnZfqn_WdnZ2d@giganews.com> <10kl2sr$8rkl$3@dont-email.me> <31stmk1pd8a7q0ekv0is4bd1l5aorcgo95@4ax.com> <wwvh5sgoeu7.fsf@LkoBDZeT.terraraq.uk> <9hlumk1lodkjlm9a6egbo2fa79f85v6mad@4ax.com> <wwva4y8gqbb.fsf@LkoBDZeT.terraraq.uk>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 8bit
X-Trace news.uni-berlin.de d+mQbUQBgESaNSfYbBXB5wkZ/bVYgOpxoJu/voXSwXhjkz
Cancel-Lock sha1:uvz8NW5zqRTRL93T6ACU9MM/bsg= sha256:WoKSbgrEool0YWCxHRIDDEyVqZeNlH5I94YF6q2JbzY=
X-Copyright (C) Copyright 2026 Stefan Ram. All rights reserved. Distribution through any means other than regular usenet channels is forbidden. It is forbidden to publish this article in the Web, to change URIs of this article into links, and to transfer the body without this notice, but quotations of parts in other Usenet posts are allowed.
X-No-Archive Yes
Archive no
X-No-Archive-Readme "X-No-Archive" is set, because this prevents some services to mirror the article in the web. But the article may be kept on a Usenet archive server with only NNTP access.
X-No-Html yes
Content-Language en
Xref csiph.com comp.os.linux.misc:81359

Show key headers only | View raw


Richard Kettlewell <invalid@invalid.invalid> wrote or quoted:
>I’ve no idea, but it doesn’t matter.

  There are tools out there for turning Python code into executables,
  and maybe some folks here have already used one executable
  generated this way without even realizing it was written in Python.

  Normally, Python gets compiled into intermediate bytecode that
  the interpreter runs, but lately there have been experiments
  with JIT compilers.

  BASIC

10 LET sum = 0
20 FOR i = 1 TO 100
30 LET sum = sum + i
40 NEXT i
50 PRINT sum

  Python

sum(range(1,101))

  BASIC

10 FOR i = 1 TO 10
20 FOR j = 1 TO 10
30 FOR k = 1 TO 10
40 PRINT i; j; k
50 NEXT k
60 NEXT j
70 NEXT i

  Python

from itertools import product

for i, j, k in product(range(1, 11), repeat=3):
    print(i, j, k)

 

Back to comp.os.linux.misc | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Python: A Little Trick For Every Need c186282 <c186282@nnada.net> - 2026-01-18 23:10 -0500
  Re: Python: A Little Trick For Every Need The Natural Philosopher <tnp@invalid.invalid> - 2026-01-19 11:00 +0000
    Re: Python: A Little Trick For Every Need c186282 <c186282@nnada.net> - 2026-01-19 17:33 -0500
      Re: Python: A Little Trick For Every Need The Natural Philosopher <tnp@invalid.invalid> - 2026-01-20 12:05 +0000
        Re: Python: A Little Trick For Every Need Charlie Gibbs <cgibbs@kltpzyxm.invalid> - 2026-01-20 19:01 +0000
          Re: Python: A Little Trick For Every Need The Natural Philosopher <tnp@invalid.invalid> - 2026-01-20 20:42 +0000
            Re: Python: A Little Trick For Every Need c186282 <c186282@nnada.net> - 2026-01-20 18:22 -0500
        Re: Python: A Little Trick For Every Need c186282 <c186282@nnada.net> - 2026-01-20 18:05 -0500
    Re: Python: A Little Trick For Every Need Steve Hayes <hayesstw@telkomsa.net> - 2026-01-20 05:04 +0200
      Re: Python: A Little Trick For Every Need Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-01-20 03:11 +0000
        Re: Python: A Little Trick For Every Need c186282 <c186282@nnada.net> - 2026-01-19 23:21 -0500
        Re: Python: A Little Trick For Every Need John Bokma <contact@johnbokma.com> - 2026-01-20 14:25 +0100
        Re: Python: A Little Trick For Every Need candycanearter07 <candycanearter07@candycanearter07.nomail.afraid> - 2026-01-20 14:30 +0000
      Re: Python: A Little Trick For Every Need c186282 <c186282@nnada.net> - 2026-01-19 22:59 -0500
      Re: Python: A Little Trick For Every Need Richard Kettlewell <invalid@invalid.invalid> - 2026-01-20 08:42 +0000
        Re: Python: A Little Trick For Every Need Steve Hayes <hayesstw@telkomsa.net> - 2026-01-20 12:17 +0200
          Re: Python: A Little Trick For Every Need Richard Kettlewell <invalid@invalid.invalid> - 2026-01-20 17:13 +0000
            Re: Python: A Little Trick For Every Need ram@zedat.fu-berlin.de (Stefan Ram) - 2026-01-20 17:40 +0000
            Re: Python: A Little Trick For Every Need Charlie Gibbs <cgibbs@kltpzyxm.invalid> - 2026-01-20 19:01 +0000
          Re: Python: A Little Trick For Every Need John Ames <commodorejohn@gmail.com> - 2026-01-20 10:18 -0800
          Re: Python: A Little Trick For Every Need Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-01-20 20:16 +0000
            Re: Python: A Little Trick For Every Need Steve Hayes <hayesstw@telkomsa.net> - 2026-01-21 07:55 +0200
              Re: Python: A Little Trick For Every Need Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-01-21 08:25 +0000
              Re: Python: A Little Trick For Every Need c186282 <c186282@nnada.net> - 2026-01-21 22:47 -0500
                Re: Python: A Little Trick For Every Need John Ames <commodorejohn@gmail.com> - 2026-01-22 08:42 -0800
          Re: Python: A Little Trick For Every Need rbowman <bowman@montana.com> - 2026-01-20 21:33 +0000
            Re: Python: A Little Trick For Every Need c186282 <c186282@nnada.net> - 2026-01-20 18:27 -0500
          Re: Python: A Little Trick For Every Need c186282 <c186282@nnada.net> - 2026-01-20 18:02 -0500
            Re: Python: A Little Trick For Every Need rbowman <bowman@montana.com> - 2026-01-21 06:50 +0000
              Re: Python: A Little Trick For Every Need c186282 <c186282@nnada.net> - 2026-01-21 22:49 -0500
          Re: Python: A Little Trick For Every Need Rich <rich@example.invalid> - 2026-02-02 14:50 +0000
            Re: Python: A Little Trick For Every Need The Natural Philosopher <tnp@invalid.invalid> - 2026-02-02 15:07 +0000
              Re: Python: A Little Trick For Every Need rbowman <bowman@montana.com> - 2026-02-02 21:19 +0000
                Re: Python: A Little Trick For Every Need c186282 <c186282@nnada.net> - 2026-02-02 21:03 -0500
                Re: Python: A Little Trick For Every Need Richard Kettlewell <invalid@invalid.invalid> - 2026-02-03 08:52 +0000
                Re: Python: A Little Trick For Every Need The Natural Philosopher <tnp@invalid.invalid> - 2026-02-03 12:57 +0000
                Re: Python: A Little Trick For Every Need c186282 <c186282@nnada.net> - 2026-02-03 13:53 -0500
                Re: Python: A Little Trick For Every Need The Natural Philosopher <tnp@invalid.invalid> - 2026-02-04 11:51 +0000
                Re: Python: A Little Trick For Every Need c186282 <c186282@nnada.net> - 2026-02-04 22:09 -0500
            Re: Python: A Little Trick For Every Need c186282 <c186282@nnada.net> - 2026-02-02 20:50 -0500
              Re: Python: A Little Trick For Every Need rbowman <bowman@montana.com> - 2026-02-03 02:58 +0000
                Re: Python: A Little Trick For Every Need c186282 <c186282@nnada.net> - 2026-02-02 22:23 -0500
                Re: Python: A Little Trick For Every Need rbowman <bowman@montana.com> - 2026-02-03 19:57 +0000
                Re: Python: A Little Trick For Every Need The Natural Philosopher <tnp@invalid.invalid> - 2026-02-04 11:52 +0000
                Re: Python: A Little Trick For Every Need Bobbie Sellers <bliss-sf4ever@dslextreme.com> - 2026-02-02 20:20 -0800
                Re: Python: A Little Trick For Every Need c186282 <c186282@nnada.net> - 2026-02-03 00:18 -0500
                Re: Python: A Little Trick For Every Need Robert Riches <spamtrap42@jacob21819.net> - 2026-02-04 04:18 +0000
                Re: Python: A Little Trick For Every Need c186282 <c186282@nnada.net> - 2026-02-03 23:45 -0500
                Re: Python: A Little Trick For Every Need Robert Riches <spamtrap42@jacob21819.net> - 2026-02-04 05:14 +0000
                Re: Python: A Little Trick For Every Need c186282 <c186282@nnada.net> - 2026-02-04 00:51 -0500
                Re: Python: A Little Trick For Every Need Richard Kettlewell <invalid@invalid.invalid> - 2026-02-04 08:24 +0000
                Re: Python: A Little Trick For Every Need The Natural Philosopher <tnp@invalid.invalid> - 2026-02-04 11:56 +0000
                Re: Python: A Little Trick For Every Need Richard Kettlewell <invalid@invalid.invalid> - 2026-02-04 14:50 +0000
                Re: Python: A Little Trick For Every Need The Natural Philosopher <tnp@invalid.invalid> - 2026-02-04 16:44 +0000
                Re: Python: A Little Trick For Every Need John Ames <commodorejohn@gmail.com> - 2026-02-04 09:15 -0800
                Re: Python: A Little Trick For Every Need Charlie Gibbs <cgibbs@kltpzyxm.invalid> - 2026-02-04 19:26 +0000
                Re: Python: A Little Trick For Every Need The Natural Philosopher <tnp@invalid.invalid> - 2026-02-04 22:00 +0000
                Re: Python: A Little Trick For Every Need Chris Ahlstrom <OFeem1987@teleworm.us> - 2026-02-05 08:32 -0500
                Re: Python: A Little Trick For Every Need c186282 <c186282@nnada.net> - 2026-02-04 23:02 -0500
                Re: Python: A Little Trick For Every Need The Natural Philosopher <tnp@invalid.invalid> - 2026-02-04 21:58 +0000
                Re: Python: A Little Trick For Every Need c186282 <c186282@nnada.net> - 2026-02-04 22:34 -0500
                Re: Python: A Little Trick For Every Need Richard Kettlewell <invalid@invalid.invalid> - 2026-02-04 19:58 +0000
                Re: Python: A Little Trick For Every Need Chris Ahlstrom <OFeem1987@teleworm.us> - 2026-02-04 15:09 -0500
                Re: Python: A Little Trick For Every Need Bobbie Sellers <bliss-sf4ever@dslextreme.com> - 2026-02-04 13:05 -0800
                Re: Python: A Little Trick For Every Need The Natural Philosopher <tnp@invalid.invalid> - 2026-02-04 22:04 +0000
                Re: Python: A Little Trick For Every Need c186282 <c186282@nnada.net> - 2026-02-04 23:54 -0500
                Re: Python: A Little Trick For Every Need The Natural Philosopher <tnp@invalid.invalid> - 2026-02-04 22:03 +0000
                Re: Python: A Little Trick For Every Need c186282 <c186282@nnada.net> - 2026-02-04 23:49 -0500
                Re: Python: A Little Trick For Every Need Chris Ahlstrom <OFeem1987@teleworm.us> - 2026-02-05 08:29 -0500
                Re: Python: A Little Trick For Every Need The Natural Philosopher <tnp@invalid.invalid> - 2026-02-05 14:06 +0000
                Re: Python: A Little Trick For Every Need Pancho <Pancho.Jones@protonmail.com> - 2026-02-05 14:59 +0000
                C/C++ timeline (was Re: Python: A Little Trick For Every Need) John Ames <commodorejohn@gmail.com> - 2026-02-05 08:06 -0800
                Re: C/C++ timeline (was Re: Python: A Little Trick For Every Need) ram@zedat.fu-berlin.de (Stefan Ram) - 2026-02-05 16:33 +0000
                Re: C/C++ timeline (was Re: Python: A Little Trick For Every Need) rbowman <bowman@montana.com> - 2026-02-05 18:12 +0000
                Re: C/C++ timeline (was Re: Python: A Little Trick For Every Need) Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-02-05 22:40 +0000
                Re: C/C++ timeline (was Re: Python: A Little Trick For Every Need) rbowman <bowman@montana.com> - 2026-02-06 04:54 +0000
                Re: C/C++ timeline (was Re: Python: A Little Trick For Every Need) rbowman <bowman@montana.com> - 2026-02-05 17:33 +0000
                Re: C/C++ timeline (was Re: Python: A Little Trick For Every Need) John Ames <commodorejohn@gmail.com> - 2026-02-05 09:57 -0800
                Re: C/C++ timeline (was Re: Python: A Little Trick For Every Need) rbowman <bowman@montana.com> - 2026-02-06 04:12 +0000
                Re: C/C++ timeline (was Re: Python: A Little Trick For Every Need) c186282 <c186282@nnada.net> - 2026-02-06 00:03 -0500
                Re: C/C++ timeline (was Re: Python: A Little Trick For Every Need) John Ames <commodorejohn@gmail.com> - 2026-02-06 11:28 -0800
                Re: C/C++ timeline (was Re: Python: A Little Trick For Every Need) ram@zedat.fu-berlin.de (Stefan Ram) - 2026-02-06 20:03 +0000
                Re: C/C++ timeline (was Re: Python: A Little Trick For Every Need) Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-02-06 20:59 +0000
                Re: C/C++ timeline (was Re: Python: A Little Trick For Every Need) John Ames <commodorejohn@gmail.com> - 2026-02-06 13:55 -0800
                Re: C/C++ timeline (was Re: Python: A Little Trick For Every Need) Richard Kettlewell <invalid@invalid.invalid> - 2026-02-06 22:29 +0000
                Re: C/C++ timeline (was Re: Python: A Little Trick For Every Need) John Ames <commodorejohn@gmail.com> - 2026-02-06 14:43 -0800
                Re: C/C++ timeline (was Re: Python: A Little Trick For Every Need) Richard Kettlewell <invalid@invalid.invalid> - 2026-02-07 15:36 +0000
                Re: C/C++ timeline (was Re: Python: A Little Trick For Every Need) rbowman <bowman@montana.com> - 2026-02-07 20:49 +0000
                Re: C/C++ timeline (was Re: Python: A Little Trick For Every Need) Charlie Gibbs <cgibbs@kltpzyxm.invalid> - 2026-02-07 21:26 +0000
                Re: C/C++ timeline (was Re: Python: A Little Trick For Every Need) Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-02-07 22:00 +0000
                Re: C/C++ timeline (was Re: Python: A Little Trick For Every Need) rbowman <bowman@montana.com> - 2026-02-08 01:55 +0000
                Re: C/C++ timeline (was Re: Python: A Little Trick For Every Need) Nuno Silva <nunojsilva@invalid.invalid> - 2026-02-08 08:30 +0000
                Re: C/C++ timeline (was Re: Python: A Little Trick For Every Need) Richard Kettlewell <invalid@invalid.invalid> - 2026-02-08 11:04 +0000
                Re: C/C++ timeline (was Re: Python: A Little Trick For Every Need) The Natural Philosopher <tnp@invalid.invalid> - 2026-02-07 11:53 +0000
                Re: Python: A Little Trick For Every Need Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-02-05 22:38 +0000
                Re: Python: A Little Trick For Every Need rbowman <bowman@montana.com> - 2026-02-06 05:05 +0000
                Re: Python: A Little Trick For Every Need Andreas Eder <a_eder_muc@web.de> - 2026-02-05 15:55 +0100
                Re: Python: A Little Trick For Every Need rbowman <bowman@montana.com> - 2026-02-05 17:26 +0000
                Re: Python: A Little Trick For Every Need Richard Kettlewell <invalid@invalid.invalid> - 2026-02-04 22:12 +0000
                Re: Python: A Little Trick For Every Need c186282 <c186282@nnada.net> - 2026-02-04 23:35 -0500
                Re: Python: A Little Trick For Every Need c186282 <c186282@nnada.net> - 2026-02-04 22:16 -0500
                Re: Python: A Little Trick For Every Need c186282 <c186282@nnada.net> - 2026-02-04 22:13 -0500
                Re: Python: A Little Trick For Every Need c186282 <c186282@nnada.net> - 2026-02-04 21:42 -0500
                Re: Python: A Little Trick For Every Need Richard Kettlewell <invalid@invalid.invalid> - 2026-02-05 09:28 +0000
                Memory Safety (Re: Python: A Little Trick For Every Need) Lars Poulsen <lars@beagle-ears.com> - 2026-02-05 13:45 +0000
                Re: Memory Safety (Re: Python: A Little Trick For Every Need) The Natural Philosopher <tnp@invalid.invalid> - 2026-02-05 14:14 +0000
                Re: Memory Safety (Re: Python: A Little Trick For Every Need) Pancho <Pancho.Jones@protonmail.com> - 2026-02-05 15:09 +0000
                Re: Memory Safety (Re: Python: A Little Trick For Every Need) Richard Kettlewell <invalid@invalid.invalid> - 2026-02-05 16:03 +0000
                Re: Memory Safety (Re: Python: A Little Trick For Every Need) Pancho <Pancho.Jones@protonmail.com> - 2026-02-06 22:32 +0000
                Re: Memory Safety (Re: Python: A Little Trick For Every Need) Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-02-07 01:12 +0000
                Re: Memory Safety (Re: Python: A Little Trick For Every Need) c186282 <c186282@nnada.net> - 2026-02-06 21:59 -0500
                Re: Memory Safety (Re: Python: A Little Trick For Every Need) The Natural Philosopher <tnp@invalid.invalid> - 2026-02-07 12:15 +0000
                Re: Memory Safety (Re: Python: A Little Trick For Every Need) c186282 <c186282@nnada.net> - 2026-02-07 16:01 -0500
                Re: Memory Safety (Re: Python: A Little Trick For Every Need) Richard Kettlewell <invalid@invalid.invalid> - 2026-02-07 11:09 +0000
                Re: Memory Safety (Re: Python: A Little Trick For Every Need) The Natural Philosopher <tnp@invalid.invalid> - 2026-02-07 12:10 +0000
                Re: Memory Safety (Re: Python: A Little Trick For Every Need) The Natural Philosopher <tnp@invalid.invalid> - 2026-02-05 19:27 +0000
                Re: Memory Safety (Re: Python: A Little Trick For Every Need) c186282 <c186282@nnada.net> - 2026-02-05 20:51 -0500
                Re: Memory Safety (Re: Python: A Little Trick For Every Need) The Natural Philosopher <tnp@invalid.invalid> - 2026-02-06 10:45 +0000
                Re: Memory Safety (Re: Python: A Little Trick For Every Need) c186282 <c186282@nnada.net> - 2026-02-06 21:44 -0500
                Re: Memory Safety (Re: Python: A Little Trick For Every Need) The Natural Philosopher <tnp@invalid.invalid> - 2026-02-07 12:29 +0000
                Re: Memory Safety (Re: Python: A Little Trick For Every Need) c186282 <c186282@nnada.net> - 2026-02-07 16:31 -0500
                Re: Memory Safety (Re: Python: A Little Trick For Every Need) The Natural Philosopher <tnp@invalid.invalid> - 2026-02-08 10:25 +0000
                Re: Memory Safety (Re: Python: A Little Trick For Every Need) c186282 <c186282@nnada.net> - 2026-02-05 20:48 -0500
                Re: Memory Safety (Re: Python: A Little Trick For Every Need) The Natural Philosopher <tnp@invalid.invalid> - 2026-02-06 10:42 +0000
                Re: Memory Safety (Re: Python: A Little Trick For Every Need) c186282 <c186282@nnada.net> - 2026-02-06 21:31 -0500
                Re: Memory Safety (Re: Python: A Little Trick For Every Need) The Natural Philosopher <tnp@invalid.invalid> - 2026-02-07 12:23 +0000
                Memory Allocatiuon Safety (Re: Python: A Little Trick For Every Need) Lars Poulsen <lars@beagle-ears.com> - 2026-02-05 13:37 +0000
                Re: Memory Allocatiuon Safety (Re: Python: A Little Trick For Every Need) The Natural Philosopher <tnp@invalid.invalid> - 2026-02-05 14:03 +0000
      Re: Python: A Little Trick For Every Need Nuno Silva <nunojsilva@invalid.invalid> - 2026-01-20 10:16 +0000
        Re: Python: A Little Trick For Every Need c186282 <c186282@nnada.net> - 2026-01-20 17:58 -0500
          Re: Python: A Little Trick For Every Need The Natural Philosopher <tnp@invalid.invalid> - 2026-01-21 04:14 +0000

csiph-web