• 1 Post
  • 174 Comments
Joined 2 years ago
cake
Cake day: July 1st, 2023

help-circle



  • KevintoPythonFind the bug (a classic)
    link
    fedilink
    arrow-up
    10
    ·
    edit-2
    11 days ago

    Oh I had a similar bug but with defaulted dicts. Default args are constructed once and reused. Not a problem for immutable args, but mutables like dicts (and sets I’d also assume) are all shared.

    EDIT: whoops, didn’t see you spoilered the answer, my bad! If it helps, i found my bug when dealing with cross-thread stuff, so that was a fun moment to bisect





  • That may also potentially be survivorship bias. IMO the only open source projects that would live to tell the tale are:

    • Foundational projects that are critical components in major tech stacks, having a backing in the form of funded developers or donations from companies involved in those tech stacks
    • Enterprise-scale projects born out of a consortium of companies
    • Hobby projects that the creators aren’t relying on as their sole source of income

    At least two of those categories are reliant on funding from companies, which in turn relies on either their well-entrenched presence in their respective market, or their ability to market themselves effectively (ex, via advertising).