this post was submitted on 02 Sep 2025
50 points (94.6% liked)

Python

7589 readers
1 users here now

Welcome to the Python community on the programming.dev Lemmy instance!

๐Ÿ“… Events

PastNovember 2023

October 2023

July 2023

August 2023

September 2023

๐Ÿ Python project:
๐Ÿ’“ Python Community:
โœจ Python Ecosystem:
๐ŸŒŒ Fediverse
Communities
Projects
Feeds

founded 2 years ago
MODERATORS
 

See the Solution and Explanation.

you are viewing a single comment's thread
view the rest of the comments
[โ€“] NostraDavid@programming.dev 2 points 2 months ago* (last edited 2 months ago)

Structlog actually bit me like this! Had a dict that I manipulated:

expectation spoilersexpected a copy, but actually modified the original dict. Just did a my_dict.copy() (IIRC - I don't remember whether I needed a deep copy or not)

edit: goeie shit, Bas! Leer je de studenten wel debuggen en unit testing? Dat was echt gemis toen ik klaar was bij de HU, en vooral unit testen zou veel hebben geholpen tijdens het maken van mijn code.