awesome-repositories.com
博客
MCP
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目MCP 服务器关于排名机制媒体报道
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·

1 个仓库

Awesome GitHub RepositoriesPer-Instance Mutable Defaults

Mechanisms that create fresh copies of mutable default values for each instance to prevent shared-state bugs.

Distinct from Mutable Default Argument Guards: Distinct from Mutable Default Argument Guards: focuses on class attribute defaults with per-instance copying, not function argument guard patterns.

Explore 1 awesome GitHub repository matching programming languages & runtimes · Per-Instance Mutable Defaults. Refine with filters or upvote what's useful.

Awesome Per-Instance Mutable Defaults GitHub Repositories

用 AI 发现最棒的仓库。我们将通过 AI 为您搜索最匹配的仓库。
  • python-attrs/attrspython-attrs 的头像

    python-attrs/attrs

    5,799在 GitHub 上查看↗

    attrs is a Python library that automatically generates initialization, representation, equality, hashing, and ordering methods from declarative class attribute definitions. At its core, it provides a class decorator metaprogramming framework that intercepts class creation to rewrite the class body, producing dunder methods without manual boilerplate. The library includes a comprehensive attribute validation toolkit with built-in validators for type checks, range constraints, regex matching, length limits, and logical composition of validation rules. The library distinguishes itself through it

    Provides per-instance mutable default values via factory functions, avoiding shared-state bugs in data classes.

    Python
    在 GitHub 上查看↗5,799
  1. Home
  2. Programming Languages & Runtimes
  3. Function Argument Passing
  4. Default Arguments
  5. Mutable Default Argument Guards
  6. Per-Instance Mutable Defaults