JuliaPy / PythonCall.jl

Python and Julia in harmony.
https://juliapy.github.io/PythonCall.jl/stable/
MIT License
715 stars 61 forks source link

Added global option to disable 'Python:' prefix in show #505

Open J-C-Q opened 1 month ago

J-C-Q commented 1 month ago

For my use case this functionality is nice to have. Maybe others think so too, thus the pull request :)

hhaensel commented 2 weeks ago

I personally wouldn't need it, but if you propose it, why not distinguishing between Julia versions?

@static if VERSION < v"1.8"
    printPyPrefix = true
else
    printPyPrefix::Bool = true
end