Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: go-python/gpython
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: go-python/gpython
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: fix-257-RunSrc
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Jul 3, 2026

  1. py: fix RunSrc to compile in ExecMode so multi-statement source works

    RunSrc compiled source in SingleMode, whose interactive grammar only
    accepts a single top-level statement. Source with more than one
    statement (e.g. two class definitions) failed with SyntaxError, while
    the equivalent RunFile path (which uses ExecMode) worked fine.
    
    Compile in ExecMode instead, matching RunFile and the semantics of
    Python's exec() for a source buffer, and add a regression test.
    
    Fixes #257
    ncw committed Jul 3, 2026
    Configuration menu
    Copy the full SHA
    7f571f8 View commit details
    Browse the repository at this point in the history
Loading