CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-frozendict

A simple immutable dictionary implementation with hashing support and performance optimizations

85

1.30x
Overview
Eval results
Files

rubric.jsonevals/scenario-1/

{
  "context": "This evaluation assesses how well the engineer uses frozendict's version compatibility features to implement a cross-version configuration manager. The focus is on proper usage of frozendict construction, reverse iteration with version awareness, and collections.abc integration.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "frozendict construction",
      "description": "Uses frozendict() constructor to create immutable configuration from dictionary input. Should directly instantiate frozendict with the input dictionary.",
      "max_score": 20
    },
    {
      "name": "Hashability verification",
      "description": "Demonstrates that frozendict instances are hashable, allowing them to be used as dictionary keys. Should rely on frozendict's built-in hash() support.",
      "max_score": 15
    },
    {
      "name": "Forward iteration",
      "description": "Iterates over frozendict keys using standard iteration (for key in config or iter(config)). Should use frozendict's native iteration support.",
      "max_score": 15
    },
    {
      "name": "Reverse iteration",
      "description": "Uses reversed() on frozendict for reverse iteration or implements fallback for Python < 3.8. Should check for __reversed__ method availability or Python version, and fall back to list(config.keys())[::-1] or reversed(list(config)) for older versions.",
      "max_score": 25
    },
    {
      "name": "Immutability handling",
      "description": "Verifies that frozendict raises TypeError on mutation attempts. Should test item assignment or demonstrate understanding that frozendict prevents modification.",
      "max_score": 10
    },
    {
      "name": "collections.abc integration",
      "description": "Uses isinstance() with collections.abc.Mapping to check type. Should import from collections.abc (with fallback from collections for Python < 3.3 if needed) and verify frozendict is a Mapping.",
      "max_score": 15
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/pypi-frozendict

tile.json