Python and the need for speed

Marko Rauhamaa marko at
Sat Apr 15 09:27:55 EDT 2017

bartc <bc at>:

> Of course, it's possible to overdo it; if you look at Lisp, you'll lose
> yourself in the myriad looping options.

Funny, in Scheme, the only looping construct I use is named-let.

> The former /can/ be easily written as:
>     while 1:
>         body

Why not say it like it is:

   while True:

> but it's more psychological; I don't want to use an idiom to denote an
> endless loop, I want to be able to express it directly!


    for (;;)

I would call an idiom.


    while True:

is about as straightforward as it gets.

> Python's byte-code does at least optimise

I don't understand why there's so much talk about CPython's bytecode on
this list. That should only be of interest to active CPython developers.


More information about the Python-list mailing list