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: References: <10kl2sr$8rkl$3@dont-email.me> <31stmk1pd8a7q0ekv0is4bd1l5aorcgo95@4ax.com> <9hlumk1lodkjlm9a6egbo2fa79f85v6mad@4ax.com> 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 Richard Kettlewell 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)