• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

source-academy / py-slang / 37464607001
86%

Build:
DEFAULT BRANCH: main
Ran 06 Oct 2026 12:50PM UTC
Jobs 1
Files 145
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

06 Oct 2026 12:37PM UTC coverage: 85.804% (+0.08%) from 85.722%
37464607001

push

github

web-flow
Stepper: self-referential declarations bind cyclically (#497) (#498)

* Stepper: self-referential declarations bind cyclically (#497)

`b = pair(1, lambda: b)` substituted `b` only into the rest of the
program, leaving the `b` inside its own value free, so calling the
lambda raised NameError. Following the Source stepper spec's
substitution rule, a name free in its own (non-function) value now
refers cyclically to that value (`tieKnot`).

Makes the AST walkers that can reach such a value cycle-safe: clone,
substitute, freeNames, the capture-avoiding rename, allIdentifierNames,
markBuiltins and unparse (a back-reference renders as its name).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Stepper: tieKnot visits each object once

A value that already contains a cycle (tied by an earlier declaration,
e.g. `a = pair(1, lambda: a); b = pair(a, lambda: b)`) sent tieKnot's
patch walk around that cycle forever. Adds a regression test, plus one
pinning that an eager self-reference (`x = pair(1, x)`) is still a
NameError.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

5027 of 6285 branches covered (79.98%)

Branch coverage included in aggregate %.

74 of 74 new or added lines in 2 files covered. (100.0%)

11274 of 12713 relevant lines covered (88.68%)

172209.51 hits per line

Jobs
ID Job ID Ran Files Coverage
1 37464607001.1 06 Oct 2026 12:50PM UTC 145
85.8
GitHub Action Run
Source Files on build 37464607001
  • Tree
  • List 145
  • Changed 3
  • Source Changed 2
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #37464607001
  • 57c51559 on github
  • Prev Build on main (#37134674913)
  • Next Build on main (#37466946255)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc