Community member

TomBecker

Member since July 2025 · last post 26 Oct, 23:12

Counts public posts in this language only.

Latest threads

  1. 6points
    5
  2. 8points
    4
  3. 0points

    Why is decimals keyword-only?

    Solved

    TomBecker · 23 Oct, 07:47

    4
  4. 7points
    5
  5. 2points
    4
  6. 8points
    5
  7. 7points

    sorted() vs .sort()

    Solved

    TomBecker · 8 Oct, 07:16

    5
  8. 2points

    Why does sort() return None?

    Solved

    TomBecker · 6 Oct, 15:05

    4
  9. 2points
    4
  10. 4points
    5

Latest comments

  1. In insert(1, ...) — "position 1" is second?

    That difference finally clicked for me here.

    26 Oct, 23:12 · 3

  2. In How to avoid slow nested loops?

    From several minutes to under a second. Wow.

    26 Oct, 12:49 · 1

  3. In RuntimeError: dictionary changed size during iteration

    Changing values while iterating is fine, it's only adding/removing keys that breaks it.

    25 Oct, 17:17 · 3

  4. In How does the checker test a "live" countdown?

    It's called dependency injection, in its simplest form.

    25 Oct, 12:32 · 1

  5. In How to avoid slow nested loops?

    For each sensor ID in list A, I check if it's in list B.

    25 Oct, 07:24

  6. In How long should variable names be?

    fuel_left_kg it is. Units in the name are useful though, right?

    23 Oct, 13:32

  7. In Stage 2 — split("-") breaks LIFE-SUPPORT-4

    Same trick for file extensions: "archive.tar.gz".rsplit(".", 1).

    23 Oct, 07:32 · 1

  8. In Integers have no size limit?

    sys.set_int_max_str_digits(0) removes that limit if you really need to print enormous numbers.

    22 Oct, 15:15 · 6

  9. In Why is decimals keyword-only?

    So the star protects the option. Clever.

    21 Oct, 07:50

  10. In Hidden tests plant bugs — how does that work?

    "Test the alert levels" was the warm-up for this.

    21 Oct, 07:35

Log in to ask questions, comment and vote.

Log in Create account