◐ Shell
clean mode source ↗

bpo-45256: Avoid C calls for more Python to Python calls. by markshannon · Pull Request #28937 · python/cpython

Something is going on, I logged into the buildbot (you need to ask koobs for access by writting to koobs@freebsd.org) and indeed many commands are broken:

140-CURRENT-amd64-564d% gdb --args ./python Lib/test/gdb_sample.py
(gdb) b builtin_id
(gdb) r
Breakpoint 1, builtin_id (self=<optimized out>, v=0x801424c00) at Python/bltinmodule.c:1197
...
(gdb) py-list
   7        baz(a, b, c)
   8
   9    def baz(*args):
  10        id(42)
  11
 >12    foo(1, 2, 3)

while on my Linux system:

❯ gdb --args ./python Lib/test/gdb_sample.py
(gdb) b builtin_id
(gdb) r
Breakpoint 1, builtin_id (self=0x7ffff7928470, v=42) at Python/bltinmodule.c:1196
1196    {
(gdb) py-list
   5
   6    def bar(a, b, c):
   7        baz(a, b, c)
   8
   9    def baz(*args):
 >10        id(42)
  11
  12    foo(1, 2, 3)
(gdb)