Skip to content

Instantly share code, notes, and snippets.

@jevinskie
Created July 3, 2025 14:46
Show Gist options
  • Save jevinskie/39986e135f5cea8896be07c3a09a2a5f to your computer and use it in GitHub Desktop.
Save jevinskie/39986e135f5cea8896be07c3a09a2a5f to your computer and use it in GitHub Desktop.
git bisect for finding a change in bytecode behavior in CPython
#!/usr/bin/env bash
set -xeuo pipefail
echo "=== GIT STATUS ==="
git status
git clean -fdx &> /dev/null
rm -rf ~/base/python-dumb/*
./configure --enable-shared --disable-test-modules --prefix=$HOME/base/python-dumb || exit 125
make -j $(nproc) || exit 125
make -j $(nproc) install || exit 125
PYTHONPATH=$HOME/code/python/git/typing_extensions/src:$HOME/code/python/pytypes/monkeytype ~/base/python-dumb/bin/python3 ~/code/python/pytypes/monkeytype/tests/test_tracing_lite.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment