Skip to content

Commit

Permalink
docs fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Doris committed Sep 16, 2023
1 parent 253e207 commit 543824f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions docs/Project.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[deps]
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
PythonCall = "6099a3de-0909-46bc-b1f4-468b9a2dfc0d"

[compat]
Documenter = "0.27" # TODO: upgrade to v1
10 changes: 5 additions & 5 deletions src/abstract/builtins.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ Equivalent to `print(...)` in Python.
pyprint(args...; kwargs...) = (pydel!(pybuiltins.print(args...; kwargs...)); nothing)
export pyprint

"""
pyhelp([x])
Equivalent to `help(x)` in Python.
"""
function _pyhelp(args...)
pyisnone(pybuiltins.help) && error("Python help is not available")
pydel!(pybuiltins.help(args...))
nothing
end
"""
pyhelp([x])
Equivalent to `help(x)` in Python.
"""
pyhelp() = _pyhelp()
pyhelp(x) = _pyhelp(x)
export pyhelp
Expand Down

0 comments on commit 543824f

Please sign in to comment.