or run

tessl search
Log in

Version

Workspace
tessl
Visibility
Public
Created
Last updated
Describes
pypipkg:pypi/wtfpython@3.0.x
tile.json

tessl/pypi-wtfpython

tessl install tessl/pypi-wtfpython@3.0.0

Educational 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%

Assessment results

Generated

Agent Codex

Scenario 1

Mutable vs immutable objects (default arguments, references)

0%

Scenario 2

Numeric operations (banker's rounding, conversion limits, float precision)

12%

Scenario 3

Bytecode and compiler optimization (constant folding, AST vs peephole)

-2%

Scenario 4

Descriptor protocol and method binding (__get__ protocol, bound method creation)

0%

Scenario 5

Scope and name resolution (LEGB rule, closures, UnboundLocalError)

0%

Scenario 6

Exception handling (variable deletion, try-finally-return)

0%

Scenario 7

String interning and identity (is vs ==)

0%

Scenario 8

Class and object behavior (attributes, method identity, name mangling)

4%

Scenario 9

Closure and scope semantics (late binding, inspect.getclosurevars, generator scoping)

35%

Scenario 10

Unicode and character encoding (lookalike characters, raw string limitations)

0%