tessl install tessl/pypi-wtfpython@3.0.0Educational collection of surprising Python code snippets that demonstrate counter-intuitive behaviors and language internals
Agent Success
Agent success rate when using this tile
93%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.06x
Baseline
Agent success rate without this tile
88%
Generated
Agent Codex
Scenario 1
Mutable vs immutable objects (default arguments, references)
Scenario 2
Numeric operations (banker's rounding, conversion limits, float precision)
Scenario 3
Bytecode and compiler optimization (constant folding, AST vs peephole)
Scenario 4
Descriptor protocol and method binding (__get__ protocol, bound method creation)
Scenario 5
Scope and name resolution (LEGB rule, closures, UnboundLocalError)
Scenario 6
Exception handling (variable deletion, try-finally-return)
Scenario 7
String interning and identity (is vs ==)
Scenario 8
Class and object behavior (attributes, method identity, name mangling)
Scenario 9
Closure and scope semantics (late binding, inspect.getclosurevars, generator scoping)
Scenario 10
Unicode and character encoding (lookalike characters, raw string limitations)