• NostraDavid@programming.dev
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    17 days ago

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

    expectation spoilers

    expected 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.