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

source-academy / py-slang / 36323013500
88%

Build:
DEFAULT BRANCH: main
Ran 27 Sep 2026 01:52PM UTC
Jobs 1
Files 139
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

27 Sep 2026 01:36PM UTC coverage: 85.734%. Remained the same
36323013500

push

github

web-flow
fix(py2js): pair/llist/head/tail preserve sharing (#476)

In py2js, the linked-list builtins went through the generic stdlib
bridge, which converts every argument to a CSE Value and the result back
into new PyLists. So head(p) returned a fresh copy of p's head on every
call, and pair(x, x) stored two copies of x.

That broke everything depending on identity:
- draw_data drew shared substructure as separate copies, e.g.
  pair(head(xs), pair(head(xs), ...)) drew head(xs) twice
- set_head/set_tail on a value obtained via head/tail mutated a
  throwaway copy: after y = pair(x, x); set_head(head(y), 99),
  head(x) was still 1

pair, llist, head and tail now handle well-formed calls natively on the
caller's own PyValues. Any other call (wrong argument count, non-pair to
head/tail) falls through to the generic bridge, so every error message
is unchanged.

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

4902 of 6149 branches covered (79.72%)

Branch coverage included in aggregate %.

22 of 22 new or added lines in 1 file covered. (100.0%)

2 existing lines in 1 file now uncovered.

10963 of 12356 relevant lines covered (88.73%)

166215.24 hits per line

Coverage Regressions

Lines Coverage ∆ File
2
91.97
-1.06% src/engines/py2js/stdlibBridge.ts
Jobs
ID Job ID Ran Files Coverage
1 36323013500.1 27 Sep 2026 01:52PM UTC 139
85.73
GitHub Action Run
Source Files on build 36323013500
  • Tree
  • List 139
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #36323013500
  • 8b7faffd on github
  • Prev Build on main (#35627324494)
  • Next Build on main (#36678021125)
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