Skip to content

pyrepl#792

Open
cjdoris wants to merge 9 commits into
mainfrom
pyrepl
Open

pyrepl#792
cjdoris wants to merge 9 commits into
mainfrom
pyrepl

Conversation

@cjdoris

@cjdoris cjdoris commented Jun 20, 2026

Copy link
Copy Markdown
Member

Adds pyrepl function and @pyrepl macro and repl_style preference.

These can launch a Python REPL using one of: the code stdlib, IPython, bpython or ptpython. This is controlled by the style argument.

Supports the same persistent-scope-per-module functionality as pyeval etc.

@github-actions

github-actions Bot commented Jun 20, 2026

Copy link
Copy Markdown
Contributor

Benchmark Results (Julia v1)

Time benchmarks
main 71af657... main / 71af657...
basic/@py/pydict/init 0.243 ± 0.054 ms 0.245 ± 0.049 ms 0.992 ± 0.3
basic/@py/pydict/pydel 0.252 ± 0.028 ms 0.262 ± 0.022 ms 0.961 ± 0.13
basic/julia/pydict/init 0.217 ± 0.069 ms 0.221 ± 0.068 ms 0.98 ± 0.43
basic/julia/pydict/pydel 0.23 ± 0.027 ms 0.226 ± 0.044 ms 1.02 ± 0.23
gc/full 0.59 ± 0.006 s 0.589 ± 0.0021 s 1 ± 0.011
time_to_load 2.08 ± 0.022 s 2.09 ± 0.011 s 0.995 ± 0.012
Memory benchmarks
main 71af657... main / 71af657...
basic/@py/pydict/init 5.01 k allocs: 0.0764 MB 5.01 k allocs: 0.0764 MB 1
basic/@py/pydict/pydel 5.01 k allocs: 0.0764 MB 5.01 k allocs: 0.0764 MB 1
basic/julia/pydict/init 4.01 k allocs: 0.0612 MB 4.01 k allocs: 0.0612 MB 1
basic/julia/pydict/pydel 4.01 k allocs: 0.0612 MB 4.01 k allocs: 0.0612 MB 1
gc/full 0 allocs: 0 B 0 allocs: 0 B
time_to_load 0.143 k allocs: 10.6 kB 0.143 k allocs: 10.6 kB 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant