Community member
TomBecker
Member since July 2025 · last post 26 Oct, 23:12
- 14 threads
- 55 comments
- 6 solutions
- 218 upvotes received
Counts public posts in this language only.
Latest threads
Latest comments
-
In insert(1, ...) — "position 1" is second?
That difference finally clicked for me here.
-
In How to avoid slow nested loops?
From several minutes to under a second. Wow.
-
In RuntimeError: dictionary changed size during iteration
Changing values while iterating is fine, it's only adding/removing keys that breaks it.
-
In How does the checker test a "live" countdown?
It's called dependency injection, in its simplest form.
-
In How to avoid slow nested loops?
For each sensor ID in list A, I check if it's in list B.
-
In How long should variable names be?
fuel_left_kg it is. Units in the name are useful though, right?
-
In Stage 2 — split("-") breaks LIFE-SUPPORT-4
Same trick for file extensions: "archive.tar.gz".rsplit(".", 1).
-
In Integers have no size limit?
sys.set_int_max_str_digits(0) removes that limit if you really need to print enormous numbers.
-
In Why is decimals keyword-only?
So the star protects the option. Clever.
-
In Hidden tests plant bugs — how does that work?
"Test the alert levels" was the warm-up for this.