CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-varname

Dark magics about variable names in python

Overall
score

90%

Overview
Eval results
Files

rubric.jsonevals/scenario-9/

{
  "context": "This criteria evaluates the engineer's proficiency in using the varname package's multi-level nested tuple unpacking capability. The focus is on correctly implementing variable name tracking during nested tuple unpacking operations, specifically using varname() with multi_vars=True to capture all variable names in complex unpacking patterns.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "varname() usage",
      "description": "Uses the varname() function from the varname package to retrieve variable names during assignment",
      "max_score": 25
    },
    {
      "name": "multi_vars parameter",
      "description": "Correctly sets multi_vars=True parameter in varname() to enable capturing multiple variable names during tuple unpacking",
      "max_score": 25
    },
    {
      "name": "Nested unpacking support",
      "description": "Implementation correctly handles multi-level nested tuple unpacking patterns (e.g., a, (b, c) or a, (b, (c, d))) where varname() returns nested tuples matching the unpacking structure",
      "max_score": 30
    },
    {
      "name": "Variable mapping storage",
      "description": "Stores and provides access to the mapping between captured variable names and their corresponding configuration values, utilizing the variable names returned by varname()",
      "max_score": 20
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/pypi-varname

tile.json